Explorar o código

Another mistake.. shit

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7126 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance %!s(int64=19) %!d(string=hai) anos
pai
achega
a51eda844c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/map/script.c

+ 1 - 1
src/map/script.c

@@ -10209,7 +10209,7 @@ int buildin_npcshopdelitem(struct script_state *st)
 	nd = npc_name2id(npcname);
 
 	if (nd && nd->bl.subtype==SHOP) {
-		while (nd->u.shop_item[n].nameid)
+		while (nd->u.shop_item[size].nameid)
 			size++;
 
 		while (st->end > st->start+i) {