From 708336531cbafbd9543d2a6b5436f68ad261459d Mon Sep 17 00:00:00 2001 From: David Hoppenbrouwers Date: Fri, 11 Dec 2020 23:19:30 +0100 Subject: [PATCH] Fix Variant conversion to float instead of double Closes #44303 --- core/variant_call.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/variant_call.cpp b/core/variant_call.cpp index 0c811342332..630db3256d2 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -1221,7 +1221,7 @@ Variant Variant::construct(const Variant::Type p_type, const Variant **p_args, i return (int64_t(*p_args[0])); } case REAL: { - return real_t(*p_args[0]); + return double(*p_args[0]); } case STRING: { return String(*p_args[0]);