summaryrefslogtreecommitdiff
path: root/src/emap/script.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/script.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/script.c')
-rw-r--r--src/emap/script.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emap/script.c b/src/emap/script.c
index e323e20..74f908e 100644
--- a/src/emap/script.c
+++ b/src/emap/script.c
@@ -88,6 +88,12 @@
extern int mountScriptId;
+int escript_reload(void)
+{
+ map_clear_data();
+ return 0;
+}
+
void eset_reg_npcscope_num(struct script_state* st, struct reg_db *n, int64 *num, const char* name, int *val)
{
if (!strcmp(name, ".lang"))