From c05c334de7eda2318afc4fb003dcdd7d2d74db3e Mon Sep 17 00:00:00 2001 From: Leon Krause Date: Sun, 8 Oct 2017 20:13:46 +0200 Subject: Fix binary marshalling of Objects --- core/io/marshalls.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/io') diff --git a/core/io/marshalls.cpp b/core/io/marshalls.cpp index 0834d6c321..d388a622de 100644 --- a/core/io/marshalls.cpp +++ b/core/io/marshalls.cpp @@ -1140,8 +1140,9 @@ Error encode_variant(const Variant &p_variant, uint8_t *r_buffer, int &r_len, bo if (buf) { encode_uint32(0, buf); buf += 4; - r_len += 4; } + r_len += 4; + } else { _encode_string(obj->get_class(), buf, r_len); -- cgit v1.2.3