Merge pull request #63128 from cdemirer/fix-callable-comparator-error-message-argcount
This commit is contained in:
commit
d6b1dd4854
@ -437,6 +437,6 @@ bool CallableComparator::operator()(const Variant &p_l, const Variant &p_r) cons
|
|||||||
Variant res;
|
Variant res;
|
||||||
func.call(args, 2, res, err);
|
func.call(args, 2, res, err);
|
||||||
ERR_FAIL_COND_V_MSG(err.error != Callable::CallError::CALL_OK, false,
|
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;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user