mirror of
https://github.com/godotengine/godot.git
synced 2026-01-10 10:12:28 +03:00
Merge pull request #44306 from Demindiro/fix-conv-to-32bit-float
Fix Variant conversion to float instead of double
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user