diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index b0488500f..871209a17 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -2083,7 +2083,7 @@ void Client::sendChatMessage(const std::wstring &message) // Write length size_t messagesize = message.size(); assert(messagesize <= 0xFFFF); - writeU16(buf, (u16) (messagesize & 0xFF)); + writeU16(buf, (u16) (messagesize & 0xFFFF)); os.write((char*)buf, 2); // Write string |