Merge pull request #63128 from cdemirer/fix-callable-comparator-error-message-argcount

This commit is contained in:
Rémi Verschelde 2022-07-21 16:50:39 +02:00 committed by GitHub
commit d6b1dd4854
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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