diff options
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r-- | src/net/tmwa/chathandler.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index c2ffca0e3..73e651da2 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -30,7 +30,6 @@ #include "gui/windows/chatwindow.h" -#include "net/net.h" #include "net/serverfeatures.h" #include "net/tmwa/messageout.h" @@ -282,7 +281,7 @@ void ChatHandler::battleTalk(const std::string &text A_UNUSED) const void ChatHandler::processChat(Net::MessageIn &msg) { BLOCK_START("ChatHandler::processChat") - int chatMsgLength = msg.readInt16("len") - 4; + const int chatMsgLength = msg.readInt16("len") - 4; if (chatMsgLength <= 0) { BLOCK_END("ChatHandler::processChat") @@ -295,7 +294,7 @@ void ChatHandler::processChat(Net::MessageIn &msg) void ChatHandler::processChat2(Net::MessageIn &msg) { BLOCK_START("ChatHandler::processChat") - int chatMsgLength = msg.readInt16("len") - 4 - 3; + const int chatMsgLength = msg.readInt16("len") - 4 - 3; std::string channel; channel = msg.readUInt8("channel byte 0"); channel += msg.readUInt8("channel byte 1"); |