summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-21 16:50:39 +0200
committerGitHub <noreply@github.com>2022-07-21 16:50:39 +0200
commitd6b1dd4854be3b31673e7634d3b88499f3bd2b60 (patch)
tree8f04b7236eafadfc2d9ddc24d7532e9e7b433db0 /core
parentea3d355f0a75ec816125acff0c2fd036814f29eb (diff)
parentdae5edf41c2287dea794c6a3a9d686479e71f10b (diff)
Merge pull request #63128 from cdemirer/fix-callable-comparator-error-message-argcount
Diffstat (limited to 'core')
-rw-r--r--core/variant/callable.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/callable.cpp b/core/variant/callable.cpp
index 5453f0d5c6..f20ec4037a 100644
--- a/core/variant/callable.cpp
+++ b/core/variant/callable.cpp
@@ -437,6 +437,6 @@ bool CallableComparator::operator()(const Variant &p_l, const Variant &p_r) cons
Variant res;
func.call(args, 2, res, err);
ERR_FAIL_COND_V_MSG(err.error != Callable::CallError::CALL_OK, false,
- "Error calling compare method: " + Variant::get_callable_error_text(func, args, 1, err));
+ "Error calling compare method: " + Variant::get_callable_error_text(func, args, 2, err));
return res;
}