diff options
author | Piotr HaĆaczkiewicz <piotr.halaczkiewicz@gmail.com> | 2013-07-25 22:29:07 +0200 |
---|---|---|
committer | Piotr HaĆaczkiewicz <piotr.halaczkiewicz@gmail.com> | 2013-07-25 22:29:07 +0200 |
commit | e9e8914ebfa70c1c212d0a7d7173b6da9e0e5b60 (patch) | |
tree | b868fd60d6d557971620a50ca4dac9e26d2c88fc /src/map/status.c | |
parent | 078bbbada6272b56ecf22a98ee63345a8e35822e (diff) | |
download | hercules-e9e8914ebfa70c1c212d0a7d7173b6da9e0e5b60.tar.gz hercules-e9e8914ebfa70c1c212d0a7d7173b6da9e0e5b60.tar.bz2 hercules-e9e8914ebfa70c1c212d0a7d7173b6da9e0e5b60.tar.xz hercules-e9e8914ebfa70c1c212d0a7d7173b6da9e0e5b60.zip |
Fixed typo in `SC__STRIPACCESSARY`.
Fixed `SC__STRIPACCESSARY` checking for equip index instead of equip
position. Fixes #72
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c index 58e844529..c0378afbc 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -6865,11 +6865,11 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val case SC__STRIPACCESSARY: if( sd ) { int i = -1; - if( !(sd->bonus.unstripable_equip&EQI_ACC_L) ) { + if( !(sd->bonus.unstripable_equip&EQP_ACC_L) ) { i = sd->equip_index[EQI_ACC_L]; if( i >= 0 && sd->inventory_data[i] && sd->inventory_data[i]->type == IT_ARMOR ) pc->unequipitem(sd,i,3); //L-Accessory - } if( !(sd->bonus.unstripable_equip&EQI_ACC_R) ) { + } if( !(sd->bonus.unstripable_equip&EQP_ACC_R) ) { i = sd->equip_index[EQI_ACC_R]; if( i >= 0 && sd->inventory_data[i] && sd->inventory_data[i]->type == IT_ARMOR ) pc->unequipitem(sd,i,3); //R-Accessory |