diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2023-01-11 01:15:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 01:15:39 +0100 |
commit | 5c6158fdfd16c9f1d6f70865905cea172d581d19 (patch) | |
tree | 3d85203ff887935d9c0cf20902c5a8416a3ab51a /core/object | |
parent | 54688a753589a2104e31cf2265a254cad48715ba (diff) | |
parent | 33d3b7eea77517cd2fcce59c5e9128aa74511f9f (diff) |
Merge pull request #71157 from reduz/fix-callable-get-bound-arguments
Fix Callable call error reporting.
Diffstat (limited to 'core/object')
-rw-r--r-- | core/object/object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object/object.cpp b/core/object/object.cpp index 1f0a7e516d..2cb56dfe6c 100644 --- a/core/object/object.cpp +++ b/core/object/object.cpp @@ -1055,7 +1055,7 @@ Error Object::emit_signalp(const StringName &p_name, const Variant **p_args, int if (ce.error == Callable::CallError::CALL_ERROR_INVALID_METHOD && !ClassDB::class_exists(target->get_class_name())) { //most likely object is not initialized yet, do not throw error. } else { - ERR_PRINT("Error calling from signal '" + String(p_name) + "' to callable: " + Variant::get_callable_error_text(c.callable, args, argc + c.callable.get_bound_arguments_count(), ce) + "."); + ERR_PRINT("Error calling from signal '" + String(p_name) + "' to callable: " + Variant::get_callable_error_text(c.callable, args, argc, ce) + "."); err = ERR_METHOD_NOT_FOUND; } } |