瀏覽代碼

Merge pull request #11947 from eska014/fix-obj-marshalling

Fix exporting projects with custom input event actions
Rémi Verschelde 8 年之前
父節點
當前提交
e5fcf0ee76
共有 1 個文件被更改,包括 2 次插入1 次删除
  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);