summaryrefslogtreecommitdiff
path: root/src/net/tmwa/playerrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/playerrecv.cpp')
-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)
{