summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.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/charserverhandler.cpp
parente0af6cf371bedcfedcba2fb23e166ff5d345c447 (diff)
downloadmv-c8a5af485ef256446c761409c9947a6ca521bc25.tar.gz
mv-c8a5af485ef256446c761409c9947a6ca521bc25.tar.bz2
mv-c8a5af485ef256446c761409c9947a6ca521bc25.tar.xz
mv-c8a5af485ef256446c761409c9947a6ca521bc25.zip
Fix compilation error from last commit.
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index 3d605b1ff..0a28a9a8c 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -273,8 +273,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
static_cast<LoginHandler*>(Net::getLoginHandler())->getToken();
LocalPlayer *tempPlayer = new LocalPlayer(msg.readInt32(), 0);
- // reserving bit for future usage
- tempPlayer->setGender(token.sex & 1);
+ tempPlayer->setGender(token.sex);
character->data.mAttributes[EXP] = msg.readInt32();
character->data.mAttributes[MONEY] = msg.readInt32();