summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index f3a939c2c..189ae953f 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1838,6 +1838,8 @@ int npc_unload(struct npc_data* nd, bool single) {
nd->u.scr.label_list_num = 0;
}
}
+ if( nd->u.scr.guild_id )
+ guild_flag_remove(nd);
}
script_stop_sleeptimers(nd->bl.id);
@@ -3594,6 +3596,9 @@ int npc_reload(void) {
struct s_mapiterator* iter;
struct block_list* bl;
+ /* clear guild flag cache */
+ guild_flags_clear();
+
npc_clear_pathlist();
db_clear(npc_path_db);