summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorBojidar Marinov <bojidar.marinov.bg@gmail.com>2017-04-11 20:17:56 +0300
committerBojidar Marinov <bojidar.marinov.bg@gmail.com>2017-04-11 20:17:56 +0300
commitc37840c69f61abab34d3f0125639e6d351d51ab7 (patch)
tree78407338ce0bb35d09c00f38ef56ea9d3dc4d224 /core/io
parentfaee2fbf62fb518fc9570a90b83cf09ce390ce13 (diff)
Fix a pesky bug in marshalls.cpp/encode_variant
Fixes #7556 running game from editor on LLVM builds.
Diffstat (limited to 'core/io')
-rw-r--r--core/io/marshalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/marshalls.cpp b/core/io/marshalls.cpp
index 3889c8f3ae..5e66b7f7f5 100644
--- a/core/io/marshalls.cpp
+++ b/core/io/marshalls.cpp
@@ -862,7 +862,7 @@ Error encode_variant(const Variant &p_variant, uint8_t *r_buffer, int &r_len) {
} else {
if (buf) {
- encode_double(p_variant.operator float(), buf);
+ encode_float(p_variant.operator float(), buf);
}
r_len += 4;