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

This commit is contained in:
aleos89
2014-04-02 13:19:39 -04:00
parent c4a41c4049
commit e86471bb0b

View File

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