summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-31 15:00:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:53 +0300
commitc911d47ad83dca749945a0cfd159299e0ad0fecd (patch)
tree72f90f4b1f03bdf28add34d874da2490becb37a6
parentfdc50d1a13aab9f6586eb263e1d85b02e5c82237 (diff)
downloadplus-c911d47ad83dca749945a0cfd159299e0ad0fecd.tar.gz
plus-c911d47ad83dca749945a0cfd159299e0ad0fecd.tar.bz2
plus-c911d47ad83dca749945a0cfd159299e0ad0fecd.tar.xz
plus-c911d47ad83dca749945a0cfd159299e0ad0fecd.zip
eathena: remove slot number check in processCharLogin.
-rw-r--r--src/net/eathena/charserverhandler.cpp4
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");