mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Fix wrong error messages for invalid arguments when calling functions through call
Fixes #25505
This commit is contained in:
parent
35bb52011a
commit
d2e43475b5
@ -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 New Issue
Block a user