diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-07 21:57:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-10 23:06:08 +0300 |
commit | 2f488d98cacccc17d1702230488e15f7f9bc25e7 (patch) | |
tree | 0acf0239078b8bf1ce35dc4929ce8435f37be546 /src/map/status.c | |
parent | c0367b69fd226be21643cd4b620fff2aadb0e742 (diff) | |
download | hercules-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.c | 4 |
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; } |