diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-31 15:00:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:53 +0300 |
commit | c911d47ad83dca749945a0cfd159299e0ad0fecd (patch) | |
tree | 72f90f4b1f03bdf28add34d874da2490becb37a6 /src/net/eathena | |
parent | fdc50d1a13aab9f6586eb263e1d85b02e5c82237 (diff) | |
download | manaverse-c911d47ad83dca749945a0cfd159299e0ad0fecd.tar.gz manaverse-c911d47ad83dca749945a0cfd159299e0ad0fecd.tar.bz2 manaverse-c911d47ad83dca749945a0cfd159299e0ad0fecd.tar.xz manaverse-c911d47ad83dca749945a0cfd159299e0ad0fecd.zip |
eathena: remove slot number check in processCharLogin.
Diffstat (limited to 'src/net/eathena')
-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"); |