summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-13 10:40:56 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-13 10:40:56 +0000
commitf691773ddb5463b339093170e0f50a067a100f1c (patch)
tree6a22eca5e06fb1ed5f16756f9b4c4babbe4c6ecb /src/map
parent65813039207309de9aa6967c1d27065e9779e925 (diff)
downloadhercules-f691773ddb5463b339093170e0f50a067a100f1c.tar.gz
hercules-f691773ddb5463b339093170e0f50a067a100f1c.tar.bz2
hercules-f691773ddb5463b339093170e0f50a067a100f1c.tar.xz
hercules-f691773ddb5463b339093170e0f50a067a100f1c.zip
Fix again >_<
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7125 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c6
1 files changed, 2 insertions, 4 deletions
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));