diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-09-28 14:08:00 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-09-28 14:08:00 +0200 |
commit | ae36ba5d33b1ce61fab33ffc310da6bba38ca316 (patch) | |
tree | 7708efbd033387502aab47ec98f157781cf6a03f /Tools/ProtoProxy | |
parent | Bug fix (diff) | |
download | cuberite-ae36ba5d33b1ce61fab33ffc310da6bba38ca316.tar cuberite-ae36ba5d33b1ce61fab33ffc310da6bba38ca316.tar.gz cuberite-ae36ba5d33b1ce61fab33ffc310da6bba38ca316.tar.bz2 cuberite-ae36ba5d33b1ce61fab33ffc310da6bba38ca316.tar.lz cuberite-ae36ba5d33b1ce61fab33ffc310da6bba38ca316.tar.xz cuberite-ae36ba5d33b1ce61fab33ffc310da6bba38ca316.tar.zst cuberite-ae36ba5d33b1ce61fab33ffc310da6bba38ca316.zip |
Diffstat (limited to 'Tools/ProtoProxy')
-rw-r--r-- | Tools/ProtoProxy/Connection.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Tools/ProtoProxy/Connection.cpp b/Tools/ProtoProxy/Connection.cpp index c5916c1ca..eaf4fab02 100644 --- a/Tools/ProtoProxy/Connection.cpp +++ b/Tools/ProtoProxy/Connection.cpp @@ -1819,8 +1819,7 @@ bool cConnection::HandleServerKick(void) Reason.append(Split[4]); Reason.push_back(0); Reason.append(Split[5]); - AString ReasonBE16; - UTF8ToRawBEUTF16(Reason.data(), Reason.size(), ReasonBE16); + AString ReasonBE16 = UTF8ToRawBEUTF16(Reason.data(), Reason.size()); AString PacketStart("\xff"); PacketStart.push_back((ReasonBE16.size() / 2) / 256); PacketStart.push_back((ReasonBE16.size() / 2) % 256); |