diff options
author | cdemirer <41021322+cdemirer@users.noreply.github.com> | 2022-07-18 00:57:20 +0300 |
---|---|---|
committer | cdemirer <41021322+cdemirer@users.noreply.github.com> | 2022-07-18 00:57:20 +0300 |
commit | dae5edf41c2287dea794c6a3a9d686479e71f10b (patch) | |
tree | 347c4fee5fb3681bcbe8c004d70a1c6f6d976a3e /core/variant | |
parent | e3a8ab68ce7497b3752d29965c6a54c50d548144 (diff) |
Fix the argcount when generating error message for CallableComparator
Diffstat (limited to 'core/variant')
-rw-r--r-- | core/variant/callable.cpp | 2 |
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; } |