diff options
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 7e1458c9..20deb1a7 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -251,8 +251,8 @@ ChatWindow::chat_send(std::string nick, std::string msg) // send processed message MessageOut outMsg; - outMsg.writeShort(packetId); - outMsg.writeShort(msg.length() + 4); + outMsg.writeInt16(packetId); + outMsg.writeInt16(msg.length() + 4); outMsg.writeString(msg, msg.length()); } |