Fix lerp error message

(cherry picked from commit 899da22002)
This commit is contained in:
Paweł
2023-04-21 10:01:59 +02:00
committed by Yuri Sizov
parent 4d38529284
commit c4655010d0

View File

@@ -374,6 +374,7 @@ struct VariantUtilityFunctions {
r_error.error = Callable::CallError::CALL_OK;
if (from.get_type() != to.get_type()) {
r_error.error = Callable::CallError::CALL_ERROR_INVALID_ARGUMENT;
r_error.expected = from.get_type();
r_error.argument = 1;
return Variant();
}