summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-14 16:59:50 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-14 16:59:50 +0300
commitf57a705e52b4a21a6e34c93871f689ef971d885f (patch)
tree77e27d52e9a2d9db7188b9bae6823e539203d6a2 /src/emap/init.c
parentf03b90ff34e16a5fdd50e3994defffabd088f116 (diff)
downloadplugin-f57a705e52b4a21a6e34c93871f689ef971d885f.tar.gz
plugin-f57a705e52b4a21a6e34c93871f689ef971d885f.tar.bz2
plugin-f57a705e52b4a21a6e34c93871f689ef971d885f.tar.xz
plugin-f57a705e52b4a21a6e34c93871f689ef971d885f.zip
Fix npc assertions on maps with always visible npcs after reload scripts.
Clean npc info stored in plugin data if scripts was reloaded.
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index 53a47df..e6e3556 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -225,6 +225,7 @@ HPExport void plugin_init (void)
addHookPre("script->set_reg_ref_num", eset_reg_npcscope_num);
addHookPre("script->set_reg_npc_str", eset_reg_npcscope_str);
addHookPre("script->set_reg_ref_str", eset_reg_npcscope_str);
+ addHookPre("script->reload", escript_reload);
addHookPre("status->calc_pc_additional", estatus_calc_pc_additional);
addHookPost("clif->getareachar_unit", eclif_getareachar_unit_post);