From f691773ddb5463b339093170e0f50a067a100f1c Mon Sep 17 00:00:00 2001 From: Lance Date: Tue, 13 Jun 2006 10:40:56 +0000 Subject: Fix again >_< git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7125 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/map') diff --git a/src/map/script.c b/src/map/script.c index 13cd7d8e7..e452864bb 100644 --- a/src/map/script.c +++ b/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)); -- cgit v1.2.3-70-g09d2