diff options
author | shennetsind <ind@henn.et> | 2013-10-25 09:32:22 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-10-25 09:32:22 -0200 |
commit | bf27a9e0cf1bfe9be298c4191010ba6876457d64 (patch) | |
tree | 5a7e85a639423109b6e8cf935f2f4c8ddf1bb595 /src/map/npc.c | |
parent | 94b7b25456aa8a9de1e0f2a147d58dba6e5976dd (diff) | |
download | hercules-bf27a9e0cf1bfe9be298c4191010ba6876457d64.tar.gz hercules-bf27a9e0cf1bfe9be298c4191010ba6876457d64.tar.bz2 hercules-bf27a9e0cf1bfe9be298c4191010ba6876457d64.tar.xz hercules-bf27a9e0cf1bfe9be298c4191010ba6876457d64.zip |
Quest Bubbles Update
- Introduced questinfo cache, memory & processing speed improvement
- Fixed mini-map marker support
Special Thanks to Haruna
Signed-off-by: shennetsind <ind@henn.et>
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 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); |