Merge pull request #10334 from Faless/fix_spbuffer_utf8
Fix StreamPeer put_utf8_string not working
This commit is contained in:
commit
edd6dce622
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ void StreamPeer::put_double(double p_val) {
|
||||||
void StreamPeer::put_utf8_string(const String &p_string) {
|
void StreamPeer::put_utf8_string(const String &p_string) {
|
||||||
|
|
||||||
CharString cs = p_string.utf8();
|
CharString cs = p_string.utf8();
|
||||||
put_u32(p_string.length());
|
put_u32(cs.length());
|
||||||
put_data((const uint8_t *)cs.get_data(), cs.length());
|
put_data((const uint8_t *)cs.get_data(), cs.length());
|
||||||
}
|
}
|
||||||
void StreamPeer::put_var(const Variant &p_variant) {
|
void StreamPeer::put_var(const Variant &p_variant) {
|
||||||
|
|
Loading…
Reference in a new issue