diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-29 23:49:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-29 23:49:29 +0300 |
commit | 45379d14d9d3c7f4673b8390cb95d98bb1759f45 (patch) | |
tree | 698fe787014ca277f5b23144136d4e5417c6b444 /src/net/ea | |
parent | 273b79cf4f52c846508f3493727e34b1811ecfd5 (diff) | |
download | manaverse-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.gz manaverse-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.bz2 manaverse-45379d14d9d3c7f4673b8390cb95d98bb1759f45.tar.xz manaverse-45379d14d9d3c7f4673b8390cb95d98bb1759f45.zip |
Convert Gender enum into strong typed enum.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/playerhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/ea/token.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp index 8d4937236..092dc8ca1 100644 --- a/src/net/ea/playerhandler.cpp +++ b/src/net/ea/playerhandler.cpp @@ -513,7 +513,7 @@ void PlayerHandler::processOnlineList(Net::MessageIn &msg) unsigned char ver = *buf; buf ++; - unsigned char gender = Gender::UNSPECIFIED; + GenderT gender = Gender::UNSPECIFIED; if (config.getBoolValue("showgender")) { if (status & BeingFlag::GENDER_MALE) diff --git a/src/net/ea/token.h b/src/net/ea/token.h index a62136aee..0d806656c 100644 --- a/src/net/ea/token.h +++ b/src/net/ea/token.h @@ -31,7 +31,7 @@ struct Token final BeingId account_ID; int session_ID1; int session_ID2; - Gender::Type sex; + GenderT sex; void clear() { |