summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
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));