summaryrefslogtreecommitdiff
path: root/src/map/instance.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2015-08-11 02:36:37 +0200
committerHaruna <haru@dotalux.com>2015-08-11 02:36:37 +0200
commite556fc1b65905ad186de70a9774b8b0aceee9bc0 (patch)
treeae7b0364ce80f7a479b3a10b6221b925f6e709ed /src/map/instance.c
parent5ad96bcc2af2a5a76348fca87e52a0f038461808 (diff)
parent30bb5f0fb8c45b518993527fad628754c2723581 (diff)
downloadhercules-e556fc1b65905ad186de70a9774b8b0aceee9bc0.tar.gz
hercules-e556fc1b65905ad186de70a9774b8b0aceee9bc0.tar.bz2
hercules-e556fc1b65905ad186de70a9774b8b0aceee9bc0.tar.xz
hercules-e556fc1b65905ad186de70a9774b8b0aceee9bc0.zip
Merge pull request #625 from 4144/scripthooks
Add scripts invoking hooks
Diffstat (limited to 'src/map/instance.c')
-rw-r--r--src/map/instance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/instance.c b/src/map/instance.c
index f5688d02c..92acd1bbb 100644
--- a/src/map/instance.c
+++ b/src/map/instance.c
@@ -357,7 +357,7 @@ int instance_init_npc(struct block_list* bl, va_list args) {
snprintf(evname, EVENT_NAME_LENGTH, "%s::OnInstanceInit", nd->exname);
if( ( ev = strdb_get(npc->ev_db, evname) ) )
- script->run(ev->nd->u.scr.script, ev->pos, 0, ev->nd->bl.id);
+ script->run_npc(ev->nd->u.scr.script, ev->pos, 0, ev->nd->bl.id);
return 1;
}