diff options
author | shennetsind <shennetsind@users.noreply.github.com> | 2013-10-25 21:11:05 -0700 |
---|---|---|
committer | shennetsind <shennetsind@users.noreply.github.com> | 2013-10-25 21:11:05 -0700 |
commit | 1ab0017183e910271f4590beee37530fa3ce8ba0 (patch) | |
tree | 03ef8eb76a73d498e69e8c7e1160a1015a4c9653 /src/map/npc.c | |
parent | 5f6f1d66834b8328496c1678f0ce4f90a001b3fb (diff) | |
parent | f7158456d9f6338b38b16f321c9a229fc6547bc0 (diff) | |
download | hercules-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.c | 3 |
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); |