Explorar o código

Fix binary marshalling of Objects

Leon Krause %!s(int64=8) %!d(string=hai) anos
pai
achega
c05c334de7
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      core/io/marshalls.cpp

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