diff options
author | kubecz3k <kubecz3k@gmail.com> | 2017-08-15 23:06:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-15 23:06:40 +0200 |
commit | edd6dce6222eb10d3c5e90d175c09db8574bab72 (patch) | |
tree | b8d94b5ea2296ae4104bb9e96c3dc13682be4bdf | |
parent | 129ebca41d8ed85830580c593eafa2a8637cb5be (diff) | |
parent | 74795b98da6b40070cfaa2c81c44647c2135f326 (diff) |
Merge pull request #10334 from Faless/fix_spbuffer_utf8
Fix StreamPeer put_utf8_string not working
-rw-r--r-- | core/io/stream_peer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/stream_peer.cpp b/core/io/stream_peer.cpp index faf0700edf..7042700d92 100644 --- a/core/io/stream_peer.cpp +++ b/core/io/stream_peer.cpp @@ -210,7 +210,7 @@ void StreamPeer::put_double(double p_val) { void StreamPeer::put_utf8_string(const String &p_string) { CharString cs = p_string.utf8(); - put_u32(p_string.length()); + put_u32(cs.length()); put_data((const uint8_t *)cs.get_data(), cs.length()); } void StreamPeer::put_var(const Variant &p_variant) { |