summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-07 21:57:49 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-10 23:06:08 +0300
commit2f488d98cacccc17d1702230488e15f7f9bc25e7 (patch)
tree0acf0239078b8bf1ce35dc4929ce8435f37be546 /src/map/status.c
parentc0367b69fd226be21643cd4b620fff2aadb0e742 (diff)
downloadhercules-2f488d98cacccc17d1702230488e15f7f9bc25e7.tar.gz
hercules-2f488d98cacccc17d1702230488e15f7f9bc25e7.tar.bz2
hercules-2f488d98cacccc17d1702230488e15f7f9bc25e7.tar.xz
hercules-2f488d98cacccc17d1702230488e15f7f9bc25e7.zip
Move equip item script function call into function script_run_item_equip_script.
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index d19ce0511..e70fb1eb1 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2267,7 +2267,7 @@ int status_calc_pc_(struct map_session_data* sd, enum e_status_calc_opt opt) {
if (opt&SCO_FIRST && sd->inventory_data[index]->equip_script) {
//Execute equip-script on login
- script->run(sd->inventory_data[index]->equip_script,0,sd->bl.id,0);
+ script->run_item_equip_script(sd, sd->inventory_data[index], 0);
if (!calculating)
return 1;
}
@@ -2428,7 +2428,7 @@ int status_calc_pc_(struct map_session_data* sd, enum e_status_calc_opt opt) {
continue;
if(opt&SCO_FIRST && data->equip_script) {//Execute equip-script on login
- script->run(data->equip_script,0,sd->bl.id,0);
+ script->run_item_equip_script(sd, data, 0);
if (!calculating)
return 1;
}