summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-07 22:39:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-10 23:06:08 +0300
commit7614415c83f2a091302f62806e16adca1feea6bf (patch)
tree7839620990292d97fe23dc40215b1fc1545a4cd3 /src/map/pc.c
parent2f488d98cacccc17d1702230488e15f7f9bc25e7 (diff)
downloadhercules-7614415c83f2a091302f62806e16adca1feea6bf.tar.gz
hercules-7614415c83f2a091302f62806e16adca1feea6bf.tar.bz2
hercules-7614415c83f2a091302f62806e16adca1feea6bf.tar.xz
hercules-7614415c83f2a091302f62806e16adca1feea6bf.zip
Move unequip item script function call into function script_run_item_unequip_script.
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index d6b377b9b..ec74e2da8 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -9815,10 +9815,10 @@ int pc_unequipitem(struct map_session_data *sd,int n,int flag)
if ( battle_config.unequip_restricted_equipment & 1 ) {
ARR_FIND(0, map->list[sd->bl.m].zone->disabled_items_count, i, map->list[sd->bl.m].zone->disabled_items[i] == sd->status.inventory[n].nameid);
if ( i == map->list[sd->bl.m].zone->disabled_items_count )
- script->run(sd->inventory_data[n]->unequip_script,0,sd->bl.id,npc->fake_nd->bl.id);
+ script->run_item_unequip_script(sd, sd->inventory_data[n], npc->fake_nd->bl.id);
}
else
- script->run(sd->inventory_data[n]->unequip_script,0,sd->bl.id,npc->fake_nd->bl.id);
+ script->run_item_unequip_script(sd, sd->inventory_data[n], npc->fake_nd->bl.id);
}
if(itemdb_isspecial(sd->status.inventory[n].card[0]))
; //No cards
@@ -9834,10 +9834,10 @@ int pc_unequipitem(struct map_session_data *sd,int n,int flag)
int j;
ARR_FIND(0, map->list[sd->bl.m].zone->disabled_items_count, j, map->list[sd->bl.m].zone->disabled_items[j] == sd->status.inventory[n].card[i]);
if ( j == map->list[sd->bl.m].zone->disabled_items_count )
- script->run(data->unequip_script,0,sd->bl.id,npc->fake_nd->bl.id);
+ script->run_item_unequip_script(sd, data, npc->fake_nd->bl.id);
}
else
- script->run(data->unequip_script,0,sd->bl.id,npc->fake_nd->bl.id);
+ script->run_item_unequip_script(sd, data, npc->fake_nd->bl.id);
}
}