diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-07 22:58:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-10 23:06:09 +0300 |
commit | 6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe (patch) | |
tree | 0c83fad347aabdc8f122a1097f1cb25bd8a937ab /src/map/instance.c | |
parent | 7614415c83f2a091302f62806e16adca1feea6bf (diff) | |
download | hercules-6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe.tar.gz hercules-6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe.tar.bz2 hercules-6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe.tar.xz hercules-6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe.zip |
Add script interface function run_npc. It do same thing as run.
Diffstat (limited to 'src/map/instance.c')
-rw-r--r-- | src/map/instance.c | 2 |
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; } |