Browse Source

Fix

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7124 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance 19 years ago
parent
commit
a9d6cac947
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/map/script.c

+ 3 - 1
src/map/script.c

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