You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Merge pull request #1396 from Spooner/fix_sprintf_errors
Fix sprintf errors
This commit is contained in:
@@ -337,9 +337,10 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
|
||||
|
||||
Variant::evaluate(op,*a,*b,*dst,valid);
|
||||
if (!valid) {
|
||||
if (false && dst->get_type()==Variant::STRING) {
|
||||
if (dst->get_type()==Variant::STRING) {
|
||||
//return a string when invalid with the error
|
||||
err_text=*dst;
|
||||
err_text += " in operator '"+Variant::get_operator_name(op)+"'.";
|
||||
} else {
|
||||
err_text="Invalid operands '"+Variant::get_type_name(a->get_type())+"' and '"+Variant::get_type_name(b->get_type())+"' in operator '"+Variant::get_operator_name(op)+"'.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user