summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-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 980ec5320..874a99840 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9871,7 +9871,7 @@ int buildin_npcshopitem(struct script_state *st)
}
nd = (struct npc_data *)aRealloc(nd,sizeof(struct npc_data) +
- sizeof(nd->u.shop_item[0]) * (n+1));
+ sizeof(nd->u.shop_item[0]) * n);
map_addiddb(&nd->bl);