summaryrefslogtreecommitdiff
path: root/core/object
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-09 08:34:28 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-09 08:34:28 +0100
commit31f94574d4c114e4fbdca944113601ad09a981b4 (patch)
tree2d14090dff7eac9a30aa1c3d3fb1ec470397c520 /core/object
parent9c7723b71755c3172f4b591ff8b1b3ee971f6843 (diff)
parent0e0ca01bce1adecde1de745d2b31d2ad0c12bf6b (diff)
Merge pull request #70996 from reduz/properly-report-callable-bound-arguments
Properly report Callable bound arguments
Diffstat (limited to 'core/object')
-rw-r--r--core/object/object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object/object.cpp b/core/object/object.cpp
index 8bc2f89c27..0e82440fc0 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, ce) + ".");
+ 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 = ERR_METHOD_NOT_FOUND;
}
}