diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-14 16:59:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-14 16:59:50 +0300 |
commit | f57a705e52b4a21a6e34c93871f689ef971d885f (patch) | |
tree | 77e27d52e9a2d9db7188b9bae6823e539203d6a2 /src/emap/script.c | |
parent | f03b90ff34e16a5fdd50e3994defffabd088f116 (diff) | |
download | evol-hercules-f57a705e52b4a21a6e34c93871f689ef971d885f.tar.gz evol-hercules-f57a705e52b4a21a6e34c93871f689ef971d885f.tar.bz2 evol-hercules-f57a705e52b4a21a6e34c93871f689ef971d885f.tar.xz evol-hercules-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.c | 6 |
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")) |