From d03ec48c778c22fd8e469e81fedf9cbf07b956b2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 1 Jan 2015 12:59:07 +0300 Subject: eathena: fix char gender on char selection dialog. --- src/net/eathena/charserverhandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 992b4ca79..e8e2ea077 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -248,8 +248,9 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, msg.readInt32("slot change"); tempPlayer->setRename(msg.readInt32("rename (inverse)")); - const uint8_t gender = static_cast(msg.readUInt8("gender") & 3); - tempPlayer->setGender(Being::intToGender(gender)); + const uint8_t gender = static_cast(msg.readUInt8("gender")); + if (gender != 99) + tempPlayer->setGender(Being::intToGender(gender)); } void CharServerHandler::chooseCharacter(Net::Character *const character) -- cgit v1.2.3-70-g09d2