summaryrefslogtreecommitdiffstats
path: root/core/io/resource_format_binary.cpp
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-01-25 14:46:35 -0500
committerAaron Franke <arnfranke@yahoo.com>2021-01-26 13:04:22 -0500
commit1be0d6b30e673b209fa8b1f2aa77995c9534df5e (patch)
treea3d63faae7b54415c54dd0010ba0578c51f55872 /core/io/resource_format_binary.cpp
parentfa498f6105bb18a038210f4c000e1a97b7c86354 (diff)
downloadredot-engine-1be0d6b30e673b209fa8b1f2aa77995c9534df5e.tar.gz
Type consistencies in core
Diffstat (limited to 'core/io/resource_format_binary.cpp')
-rw-r--r--core/io/resource_format_binary.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/io/resource_format_binary.cpp b/core/io/resource_format_binary.cpp
index ae4643a19f..fad58d65fd 100644
--- a/core/io/resource_format_binary.cpp
+++ b/core/io/resource_format_binary.cpp
@@ -261,11 +261,11 @@ Error ResourceLoaderBinary::parse_variant(Variant &r_v) {
r_v = v;
} break;
case VARIANT_COLOR: {
- Color v;
- v.r = f->get_real();
- v.g = f->get_real();
- v.b = f->get_real();
- v.a = f->get_real();
+ Color v; // Colors should always be in single-precision.
+ v.r = f->get_float();
+ v.g = f->get_float();
+ v.b = f->get_float();
+ v.a = f->get_float();
r_v = v;
} break;