summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-01 09:40:09 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-01 09:40:09 +0000
commit5c8d26c20ea69fc5173ab5c88fe9556692504221 (patch)
treea36204f6204a5dbe1cd42ccdd8f8a2ee5120f910 /src
parent74a30ea8d414cec9fba211298c72b2a686b0582a (diff)
downloadhercules-5c8d26c20ea69fc5173ab5c88fe9556692504221.tar.gz
hercules-5c8d26c20ea69fc5173ab5c88fe9556692504221.tar.bz2
hercules-5c8d26c20ea69fc5173ab5c88fe9556692504221.tar.xz
hercules-5c8d26c20ea69fc5173ab5c88fe9556692504221.zip
bl.subtype check.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5843 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-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 204922fa5..ff625f2f3 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9848,7 +9848,7 @@ int buildin_npcshopitem(struct script_state *st)
#define MAX_SHOPITEM 100
#endif
- if(nd){
+ if(nd && nd->bl.subtype=SHOP){
nd = (struct npc_data *)aRealloc(nd,sizeof(struct npc_data) +
sizeof(nd->u.shop_item[0]) * (MAX_SHOPITEM + 1));