소스 검색

Fix again >_<

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7125 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance 19 년 전
부모
커밋
4a226bec3a
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      src/map/script.c

+ 2 - 4
src/map/script.c

@@ -10222,12 +10222,10 @@ int buildin_npcshopdelitem(struct script_state *st)
 			i++;
 		}
 
-		size = n = 0;
+		size = 0;
 
-		while (nd->u.shop_item[n].nameid){
+		while (nd->u.shop_item[size].nameid)
 			size++;
-			n++;
-		}
 
 		nd = (struct npc_data *)aRealloc(nd,sizeof(struct npc_data) +
 			sizeof(nd->u.shop_item[0]) * (size+1));