diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-10-09 00:04:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-09 00:04:28 +0200 |
commit | e5fcf0ee76d08dd470cc7d3ca20851584ce28abb (patch) | |
tree | 1e8259ca4be9de0e66f4ca7f5a87fc82bc421acd /core/io | |
parent | c95ba4d7a75c7431c0339c17e7b81e32ce6f6483 (diff) | |
parent | c05c334de7eda2318afc4fb003dcdd7d2d74db3e (diff) |
Merge pull request #11947 from eska014/fix-obj-marshalling
Fix exporting projects with custom input event actions
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/marshalls.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |