summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-13 10:40:14 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-13 10:40:14 +0000
commit65813039207309de9aa6967c1d27065e9779e925 (patch)
treedf83765f21b54e2cd13dec1f38486467c56bcfe8 /src/map/script.c
parentb3f9f6ecb855b715e0b1704c5f50f6a4a9d0686e (diff)
downloadhercules-65813039207309de9aa6967c1d27065e9779e925.tar.gz
hercules-65813039207309de9aa6967c1d27065e9779e925.tar.bz2
hercules-65813039207309de9aa6967c1d27065e9779e925.tar.xz
hercules-65813039207309de9aa6967c1d27065e9779e925.zip
Fix
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7124 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index c224e4d95..13cd7d8e7 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10224,8 +10224,10 @@ int buildin_npcshopdelitem(struct script_state *st)
size = n = 0;
- while (nd->u.shop_item[n].nameid)
+ while (nd->u.shop_item[n].nameid){
size++;
+ n++;
+ }
nd = (struct npc_data *)aRealloc(nd,sizeof(struct npc_data) +
sizeof(nd->u.shop_item[0]) * (size+1));