summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index e452864bb..fa61ab6b1 100644
--- a/src/map/script.c
+++ b/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) {