summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-01 09:48:17 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-01 09:48:17 +0000
commit6be44ef7080eee65c7f57cd038d213532d619a46 (patch)
tree0516cc7ffe43a77edc91f8a45cee8ab4f4051f88 /src/map/script.c
parent63c85fa677acf77a4288a3e7d92e24469b8f80f0 (diff)
downloadhercules-6be44ef7080eee65c7f57cd038d213532d619a46.tar.gz
hercules-6be44ef7080eee65c7f57cd038d213532d619a46.tar.bz2
hercules-6be44ef7080eee65c7f57cd038d213532d619a46.tar.xz
hercules-6be44ef7080eee65c7f57cd038d213532d619a46.zip
* Should not exit when you can't find an NPC file..
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5845 54d463be-8e91-2dee-dedb-b68131a5f0ec
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);