Fix Variant conversion to float instead of double

Closes #44303
This commit is contained in:
David Hoppenbrouwers 2020-12-11 23:19:30 +01:00
parent 307a85872b
commit 708336531c
No known key found for this signature in database
GPG key ID: D5067409B69028FD

View file

@ -1221,7 +1221,7 @@ Variant Variant::construct(const Variant::Type p_type, const Variant **p_args, i
return (int64_t(*p_args[0])); return (int64_t(*p_args[0]));
} }
case REAL: { case REAL: {
return real_t(*p_args[0]); return double(*p_args[0]);
} }
case STRING: { case STRING: {
return String(*p_args[0]); return String(*p_args[0]);