diff options
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r-- | src/net/tmwa/charserverhandler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp index 2265afb84..c714c6043 100644 --- a/src/net/tmwa/charserverhandler.cpp +++ b/src/net/tmwa/charserverhandler.cpp @@ -82,7 +82,10 @@ void CharServerHandler::handleMessage(Net::MessageIn &msg) msg.skip(2); // Length word int slots = msg.readInt16(); if (slots > 0 && slots < 30) - loginData.characterSlots = slots; + { + loginData.characterSlots + = static_cast<short unsigned int>(slots); + } bool version = msg.readInt8() == 1 && serverVersion > 0; msg.skip(17); // Unused |