summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2017-08-14 13:13:21 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2017-08-14 13:19:02 +0200
commit74795b98da6b40070cfaa2c81c44647c2135f326 (patch)
tree7b6a1969dc0567eea2f1f5c48fe1713219d29593
parent9575dbdf788e8a5154b3ec2f66913e731ac02850 (diff)
Fix StreamPeer put_utf8_string not working
-rw-r--r--core/io/stream_peer.cpp2
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) {