summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorKisuka <kisuka@kisuka.com>2013-10-25 12:21:39 -0700
committerKisuka <kisuka@kisuka.com>2013-10-25 12:21:39 -0700
commitf7158456d9f6338b38b16f321c9a229fc6547bc0 (patch)
tree5a7e85a639423109b6e8cf935f2f4c8ddf1bb595 /src/map/npc.c
parent94b7b25456aa8a9de1e0f2a147d58dba6e5976dd (diff)
parentbf27a9e0cf1bfe9be298c4191010ba6876457d64 (diff)
downloadhercules-f7158456d9f6338b38b16f321c9a229fc6547bc0.tar.gz
hercules-f7158456d9f6338b38b16f321c9a229fc6547bc0.tar.bz2
hercules-f7158456d9f6338b38b16f321c9a229fc6547bc0.tar.xz
hercules-f7158456d9f6338b38b16f321c9a229fc6547bc0.zip
Merge pull request #1 from shennetsind/master
Quest Bubbles Update
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index c536dc856..79e976bb3 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1790,6 +1790,9 @@ int npc_unload(struct npc_data* nd, bool single) {
aFree(nd->path);/* remove now that no other instances exist */
}
}
+
+ if( single && nd->bl.m != -1 )
+ map->remove_questinfo(nd->bl.m,nd);
if( (nd->subtype == SHOP || nd->subtype == CASHSHOP) && nd->src_id == 0) //src check for duplicate shops [Orcao]
aFree(nd->u.shop.shop_item);