From 69298d51916f9395973d0c598b03bff369f82568 Mon Sep 17 00:00:00 2001 From: greenboxal2 Date: Sun, 26 Aug 2012 01:19:52 +0000 Subject: [PATCH] Fixed error in npc_path_data reference counting resulting in the script never getting really unloaded. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16706 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/npc.c b/src/map/npc.c index b1def4a089..9a36e58154 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;