Ver Fonte

bl.subtype check.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5843 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance há 19 anos atrás
pai
commit
dcc37512f0
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/map/script.c

+ 1 - 1
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));