summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorgreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-26 01:19:52 +0000
committergreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-26 01:19:52 +0000
commitab496b0cbd29b7cc21002849b9ce43de674801ed (patch)
tree64d90562b3761e496fef660cd66ab91f6d816068 /src/map/npc.c
parentef36e90d81beded9f0ca580215b27fd02c00f119 (diff)
downloadhercules-ab496b0cbd29b7cc21002849b9ce43de674801ed.tar.gz
hercules-ab496b0cbd29b7cc21002849b9ce43de674801ed.tar.bz2
hercules-ab496b0cbd29b7cc21002849b9ce43de674801ed.tar.xz
hercules-ab496b0cbd29b7cc21002849b9ce43de674801ed.zip
Fixed error in npc_path_data reference counting resulting in the script never getting really unloaded.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16706 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index b1def4a08..9a36e5815 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1969,7 +1969,7 @@ static void npc_parsename(struct npc_data* nd, const char* name, const char* sta
CREATE(npd->path, char, strlen(filepath)+1);
safestrncpy(npd->path, filepath, strlen(filepath)+1);
- npd->references = 1;
+ npd->references = 0;
}
nd->path = npd->path;