Merge pull request #25518 from bojidar-bg/25505-wrong-type-error-message
Fix wrong error messages for invalid arguments when calling functions through call
This commit is contained in:
commit
7fcdadadf4
1 changed files with 1 additions and 1 deletions
|
@ -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") {
|
||||
|
|
Loading…
Reference in a new issue