summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-06 02:20:36 +0300
committerAndrei Karas <akaras@inbox.ru>2018-12-06 02:20:36 +0300
commit1072c3297f948a7df6acfe08055597ed2c94e23a (patch)
treecc9500081e80843cc694bf2220f041ba6291f094
parent69d7041074c6e723ae3773f1a71ebe42dd2e406b (diff)
downloadmanaplus-1072c3297f948a7df6acfe08055597ed2c94e23a.tar.gz
manaplus-1072c3297f948a7df6acfe08055597ed2c94e23a.tar.bz2
manaplus-1072c3297f948a7df6acfe08055597ed2c94e23a.tar.xz
manaplus-1072c3297f948a7df6acfe08055597ed2c94e23a.zip
Fix gender display in legacy server online list.
-rw-r--r--src/net/tmwa/playerrecv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tmwa/playerrecv.cpp b/src/net/tmwa/playerrecv.cpp
index 0b6415dce..2f16b141a 100644
--- a/src/net/tmwa/playerrecv.cpp
+++ b/src/net/tmwa/playerrecv.cpp
@@ -217,7 +217,7 @@ void PlayerRecv::processOnlineList(Net::MessageIn &msg)
const std::string name = msg.readString(24, "name");
const unsigned char level = msg.readUInt8("level");
const unsigned char group = msg.readUInt8("group");
- GenderT gender = static_cast<GenderT>(msg.readUInt8("gender"));
+ GenderT gender = Being::intToGender(msg.readUInt8("gender"));
unsigned char status = 0;
switch (gender)
{