From e86471bb0b83029d48f6a889660690a135ce4731 Mon Sep 17 00:00:00 2001 From: aleos89 Date: Wed, 2 Apr 2014 13:19:39 -0400 Subject: [PATCH] Fixed npcshopattach not working on all Shop types. (bugreport:8850) --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/script.c b/src/map/script.c index 945a81d5ec..1bff629c62 100644 --- a/src/map/script.c +++ b/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;