1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Correctly halt on error in sprintf parsing (fixes #1393)

This commit is contained in:
Bil Bas (Spooner)
2015-02-19 15:45:49 +00:00
parent e3bf8ab02d
commit db2381de7a
5 changed files with 101 additions and 110 deletions

View File

@@ -337,7 +337,7 @@ 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;
} else {