浏览代码

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
greenboxal2 12 年之前
父节点
当前提交
69298d5191
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/map/npc.c

+ 1 - 1
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;