bl.subtype check.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5843 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Lance 2006-04-01 09:40:09 +00:00
parent 008b473603
commit dcc37512f0

View File

@ -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));