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:
parent
008b473603
commit
dcc37512f0
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user