Browse Source

Fix a pesky bug in marshalls.cpp/encode_variant

Fixes #7556 running game from editor on LLVM builds.
Bojidar Marinov 8 years ago
parent
commit
c37840c69f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/io/marshalls.cpp

+ 1 - 1
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;