summaryrefslogtreecommitdiff
path: root/src/map/chrif.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-02-08 21:35:13 -0500
committermekolat <mekolat@users.noreply.github.com>2016-02-08 21:35:13 -0500
commit8b0fab6ad2c3533eb054eb292a630b691502beae (patch)
tree9ccd267676b3c25493c13a4399e475334e8dc90f /src/map/chrif.cpp
parent71c9e0c06045303c5a0a9fb7c849b76583e449c0 (diff)
parentf889e025cc403ceb6f6276d66fdc367f544a0e82 (diff)
downloadtmwa-8b0fab6ad2c3533eb054eb292a630b691502beae.tar.gz
tmwa-8b0fab6ad2c3533eb054eb292a630b691502beae.tar.bz2
tmwa-8b0fab6ad2c3533eb054eb292a630b691502beae.tar.xz
tmwa-8b0fab6ad2c3533eb054eb292a630b691502beae.zip
Merge pull request #177 from wushin/add-third-gender
Add third gender
Diffstat (limited to 'src/map/chrif.cpp')
-rw-r--r--src/map/chrif.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/map/chrif.cpp b/src/map/chrif.cpp
index ce5669e..7421344 100644
--- a/src/map/chrif.cpp
+++ b/src/map/chrif.cpp
@@ -554,10 +554,7 @@ void chrif_changedsex(Session *, const Packet_Fixed<0x2b0d>& fixed)
{
if (sd != nullptr && sd->status.sex != sex)
{
- if (sd->status.sex == SEX::MALE)
- sd->sex = sd->status.sex = SEX::FEMALE;
- else if (sd->status.sex == SEX::FEMALE)
- sd->sex = sd->status.sex = SEX::MALE;
+ sd->sex = sd->status.sex = sex;
// to avoid any problem with equipment and invalid sex, equipment is unequiped.
for (IOff0 i : IOff0::iter())
{