summaryrefslogtreecommitdiff
path: root/src/net/tmwa/loginhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-09 00:14:41 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-09 00:14:41 +0300
commitc8a5af485ef256446c761409c9947a6ca521bc25 (patch)
tree0a4efac49ae83c16b54d224b46d3b773550ef788 /src/net/tmwa/loginhandler.cpp
parente0af6cf371bedcfedcba2fb23e166ff5d345c447 (diff)
downloadmanaplus-c8a5af485ef256446c761409c9947a6ca521bc25.tar.gz
manaplus-c8a5af485ef256446c761409c9947a6ca521bc25.tar.bz2
manaplus-c8a5af485ef256446c761409c9947a6ca521bc25.tar.xz
manaplus-c8a5af485ef256446c761409c9947a6ca521bc25.zip
Fix compilation error from last commit.
Diffstat (limited to 'src/net/tmwa/loginhandler.cpp')
-rw-r--r--src/net/tmwa/loginhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp
index c7ec0984c..0cc1670bb 100644
--- a/src/net/tmwa/loginhandler.cpp
+++ b/src/net/tmwa/loginhandler.cpp
@@ -130,7 +130,8 @@ void LoginHandler::handleMessage(Net::MessageIn &msg)
mToken.account_ID = msg.readInt32();
mToken.session_ID2 = msg.readInt32();
msg.skip(30); // unknown
- mToken.sex = msg.readInt8() ? GENDER_MALE : GENDER_FEMALE;
+ // reserve bits for future usage
+ mToken.sex = (msg.readInt8() & 1) ? GENDER_MALE : GENDER_FEMALE;
for (int i = 0; i < worldCount; i++)
{