Pārlūkot izejas kodu

Merge pull request #76314 from pkowal1982/lerp_error_message

Fix lerp error message
Rémi Verschelde 2 gadi atpakaļ
vecāks
revīzija
65d8659eb6
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      core/variant/variant_utility.cpp

+ 1 - 0
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();
 		}