summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-02-13 16:40:29 -0200
committerpanikon <panikon@zoho.com>2014-02-13 16:40:29 -0200
commit0642abcf9ef6e76861ee7d4b1a0b7f8bcd83f31f (patch)
treeec7b77587e8f536376a00942629dccd720be85c6 /src/map/map.c
parent94b80cf63ba464e956941459903af6df128951e0 (diff)
downloadhercules-0642abcf9ef6e76861ee7d4b1a0b7f8bcd83f31f.tar.gz
hercules-0642abcf9ef6e76861ee7d4b1a0b7f8bcd83f31f.tar.bz2
hercules-0642abcf9ef6e76861ee7d4b1a0b7f8bcd83f31f.tar.xz
hercules-0642abcf9ef6e76861ee7d4b1a0b7f8bcd83f31f.zip
Fixed bug 7934
http://hercules.ws/board/tracker/issue-7934-delnpc-missing-not-working/ From: http://trac.rathena.org/changeset/17128/rathena Thanks to kyeme
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 74b81f467..96595caae 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -3542,6 +3542,8 @@ void map_reloadnpc_sub(char *cfgName)
npc->addsrcfile(w2);
else if (strcmpi(w1, "import") == 0)
map->reloadnpc_sub(w2);
+ else if (strcmpi(w1, "delnpc") == 0)
+ npc->delsrcfile(w2);
else
ShowWarning("Unknown setting '%s' in file %s\n", w1, cfgName);
}