Fix binary marshalling of Objects

This commit is contained in:
Leon Krause 2017-10-08 20:13:46 +02:00
parent 2e6f2ed032
commit c05c334de7

View file

@ -1140,8 +1140,9 @@ Error encode_variant(const Variant &p_variant, uint8_t *r_buffer, int &r_len, bo
if (buf) { if (buf) {
encode_uint32(0, buf); encode_uint32(0, buf);
buf += 4; buf += 4;
r_len += 4;
} }
r_len += 4;
} else { } else {
_encode_string(obj->get_class(), buf, r_len); _encode_string(obj->get_class(), buf, r_len);