summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/charserverhandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index fde3b0a19..992b4ca79 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -247,8 +247,9 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
tempPlayer->setSprite(SPRITE_HEAD_MID, misc2);
msg.readInt32("slot change");
tempPlayer->setRename(msg.readInt32("rename (inverse)"));
- // +++ here need use gender
- msg.readUInt8("gender");
+
+ const uint8_t gender = static_cast<uint8_t>(msg.readUInt8("gender") & 3);
+ tempPlayer->setGender(Being::intToGender(gender));
}
void CharServerHandler::chooseCharacter(Net::Character *const character)