diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-02-08 11:18:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-08 11:18:30 +0100 |
commit | 7fcdadadf4bc1031557ec4c45a4c057fa6ac96b7 (patch) | |
tree | fd74da855e6e330924017d5d24cc705854007450 /modules | |
parent | 952340319297706763284c9bbe8d7a57cc4f380a (diff) | |
parent | d2e43475b5c33d2240cefc09aaf7ee5061c1f1b2 (diff) |
Merge pull request #25518 from bojidar-bg/25505-wrong-type-error-message
Fix wrong error messages for invalid arguments when calling functions through call
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_function.cpp b/modules/gdscript/gdscript_function.cpp index 966c02d4ec..98871ddec3 100644 --- a/modules/gdscript/gdscript_function.cpp +++ b/modules/gdscript/gdscript_function.cpp @@ -1083,7 +1083,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a if (argc >= 1) { methodstr = String(*argptrs[0]) + " (via call)"; if (err.error == Variant::CallError::CALL_ERROR_INVALID_ARGUMENT) { - err.argument -= 1; + err.argument += 1; } } } else if (methodstr == "free") { |