瀏覽代碼

Fixed npcshopattach not working on all Shop types. (bugreport:8850)

aleos89 11 年之前
父節點
當前提交
e86471bb0b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/map/script.c

+ 1 - 1
src/map/script.c

@@ -15533,7 +15533,7 @@ BUILDIN_FUNC(npcshopattach)
 	if( script_hasdata(st,3) )
 		flag = script_getnum(st,3);
 
-	if( !nd || nd->subtype != SHOP )
+	if( !nd || ( nd->subtype != SHOP && nd->subtype != CASHSHOP && nd->subtype != ITEMSHOP && nd->subtype != POINTSHOP ) )
 	{	//Not found.
 		script_pushint(st,0);
 		return 0;