diff options
author | Paweł <pkowal1982@gmail.com> | 2023-04-21 10:01:59 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-04-26 14:29:27 +0200 |
commit | c4655010d0a907c7357a0c60519c8345639255b1 (patch) | |
tree | cc928ed9cc790b232fed632e4a859fee57eb4d6c /core/variant | |
parent | 4d38529284120562abec62425b21c9b90b56faa7 (diff) |
Fix lerp error message
(cherry picked from commit 899da2200215b3863067719463915c968c5a3a21)
Diffstat (limited to 'core/variant')
-rw-r--r-- | core/variant/variant_utility.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/variant/variant_utility.cpp b/core/variant/variant_utility.cpp index a6363039ba..fd079dbeea 100644 --- a/core/variant/variant_utility.cpp +++ b/core/variant/variant_utility.cpp @@ -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(); } |