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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 1ba55699f..54a35c51c 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -153,6 +153,10 @@ int npc_delete(struct npc_data *nd)
if(nd->bl.prev == NULL)
return 1;
+#ifdef PCRE_SUPPORT
+ npc_chat_finalize(nd);
+#endif
+
clif_clearchar_area(&nd->bl,1);
map_delblock(&nd->bl);
return 0;