diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 18795b112..2e9d7d5e0 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -284,9 +284,7 @@ void CharServerHandler::processCharLogin(Net::MessageIn &msg) const int slots = msg.readInt8("MAX_CHARS"); msg.readInt8("sd->char_slots"); msg.readInt8("MAX_CHARS"); - - if (slots > 0 && slots < 30) - loginData.characterSlots = static_cast<uint16_t>(slots); + loginData.characterSlots = static_cast<uint16_t>(slots); msg.skip(20, "unused 0"); |