diff options
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r-- | src/map/pc.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 389f6b5..cb115c3 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -3487,33 +3487,28 @@ int pc_setparam(dumb_ptr<map_session_data> sd, SP type, int val) } break; case SP::SEX: - int operation; switch (val) { case 0: sd->sex = sd->status.sex = SEX::FEMALE; - operation = 5; break; case 1: sd->sex = sd->status.sex = SEX::MALE; - operation = 6; break; default: sd->sex = sd->status.sex = SEX::NEUTRAL; - operation = 7; break; } for (IOff0 j : IOff0::iter()) { if (sd->status.inventory[j].nameid - && bool(sd->status.inventory[j].equip)) + && bool(sd->status.inventory[j].equip) + && !pc_isequip(sd, j)) pc_unequipitem(sd, j, CalcStatus::LATER); } pc_calcstatus(sd, 0); chrif_save(sd); - sd->login_id1++; clif_fixpcpos(sd); - chrif_char_ask_name(AccountId(), sd->status_key.name, operation, HumanTimeDiff()); break; case SP::WEIGHT: sd->weight = val; |