mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Correctly halt on error in sprintf parsing (fixes #1393)
This commit is contained in:
parent
e3bf8ab02d
commit
db2381de7a
5 changed files with 101 additions and 110 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue