From 1072c3297f948a7df6acfe08055597ed2c94e23a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 6 Dec 2018 02:20:36 +0300 Subject: Fix gender display in legacy server online list. --- src/net/tmwa/playerrecv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(msg.readUInt8("gender")); + GenderT gender = Being::intToGender(msg.readUInt8("gender")); unsigned char status = 0; switch (gender) { -- cgit v1.2.3-70-g09d2