From c37840c69f61abab34d3f0125639e6d351d51ab7 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Tue, 11 Apr 2017 20:17:56 +0300 Subject: [PATCH] Fix a pesky bug in marshalls.cpp/encode_variant Fixes #7556 running game from editor on LLVM builds. --- core/io/marshalls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/marshalls.cpp b/core/io/marshalls.cpp index 3889c8f3aeb..5e66b7f7f59 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;