diff options
Diffstat (limited to 'src/net/tmwa')
-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 bda67da21..500f6b36a 100644 --- a/src/net/tmwa/charserverhandler.cpp +++ b/src/net/tmwa/charserverhandler.cpp @@ -78,7 +78,10 @@ void CharServerHandler::handleMessage(Net::MessageIn &msg) case SMSG_CHAR_LOGIN: { msg.skip(2); // Length word - msg.skip(20); // Unused + int slots = msg.readInt16(); + if (slots > 0 && slots < 30) + loginData.characterSlots = slots; + msg.skip(18); // Unused delete_all(mCharacters); mCharacters.clear(); |