From e9e8914ebfa70c1c212d0a7d7173b6da9e0e5b60 Mon Sep 17 00:00:00 2001 From: Piotr HaƂaczkiewicz Date: Thu, 25 Jul 2013 22:29:07 +0200 Subject: Fixed typo in `SC__STRIPACCESSARY`. Fixed `SC__STRIPACCESSARY` checking for equip index instead of equip position. Fixes #72 --- src/map/status.c | 4 ++-- 1 file 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 -- cgit v1.2.3-60-g2f50