summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@users.noreply.github.com>2013-10-25 21:11:05 -0700
committershennetsind <shennetsind@users.noreply.github.com>2013-10-25 21:11:05 -0700
commit1ab0017183e910271f4590beee37530fa3ce8ba0 (patch)
tree03ef8eb76a73d498e69e8c7e1160a1015a4c9653 /src/map/npc.c
parent5f6f1d66834b8328496c1678f0ce4f90a001b3fb (diff)
parentf7158456d9f6338b38b16f321c9a229fc6547bc0 (diff)
downloadhercules-1ab0017183e910271f4590beee37530fa3ce8ba0.tar.gz
hercules-1ab0017183e910271f4590beee37530fa3ce8ba0.tar.bz2
hercules-1ab0017183e910271f4590beee37530fa3ce8ba0.tar.xz
hercules-1ab0017183e910271f4590beee37530fa3ce8ba0.zip
Merge pull request #202 from kisuka/master
Quest Bubbles (Actually Works Finally)
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 2b6d807cb..e4416c19f 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);