mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix invalid cast fix resulting in chat messages beeing limited to 256 bytes
This commit is contained in:
parent
b16cbba21a
commit
5c6cf630de
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue