Fix the argcount when generating error message for CallableComparator

This commit is contained in:
cdemirer 2022-07-18 00:57:20 +03:00
parent e3a8ab68ce
commit dae5edf41c

View file

@ -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;
}