From c911d47ad83dca749945a0cfd159299e0ad0fecd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 31 Aug 2014 15:00:09 +0300 Subject: eathena: remove slot number check in processCharLogin. --- src/net/eathena/charserverhandler.cpp | 4 +--- 1 file changed, 1 insertion(+), 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(slots); + loginData.characterSlots = static_cast(slots); msg.skip(20, "unused 0"); -- cgit v1.2.3-70-g09d2