diff options
Diffstat (limited to 'src/net/eathena/generalhandler.cpp')
-rw-r--r-- | src/net/eathena/generalhandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/generalhandler.cpp b/src/net/eathena/generalhandler.cpp index 2b54be9cb..dcc4bc15c 100644 --- a/src/net/eathena/generalhandler.cpp +++ b/src/net/eathena/generalhandler.cpp @@ -120,8 +120,9 @@ void GeneralHandler::handleMessage(Net::MessageIn &msg) { case SMSG_CONNECTION_PROBLEM: { - const int code = msg.readInt8(); - logger->log("Connection problem: %i", code); + const uint8_t code = msg.readUInt8(); + logger->log("Connection problem: %u", + static_cast<unsigned int>(code)); switch (code) { |