summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-31 19:01:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-05 02:02:28 +0300
commitd2e9c1a1dbd38df76363bdc10ec69f495ab2aa14 (patch)
treed6b5326c41241a975b1671feccbef95b648912b1 /src
parent04aa6241bbfd842afb6e747b4ff77a7b369d5974 (diff)
downloadhercules-d2e9c1a1dbd38df76363bdc10ec69f495ab2aa14.tar.gz
hercules-d2e9c1a1dbd38df76363bdc10ec69f495ab2aa14.tar.bz2
hercules-d2e9c1a1dbd38df76363bdc10ec69f495ab2aa14.tar.xz
hercules-d2e9c1a1dbd38df76363bdc10ec69f495ab2aa14.zip
Allow sell items to market shop.
Diffstat (limited to 'src')
-rw-r--r--src/map/npc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 8114cacaa..f4e4e4018 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2096,7 +2096,7 @@ int npc_selllist(struct map_session_data* sd, int n, unsigned short* item_list)
}
if( nd->subtype != SHOP ) {
- if( !(nd->subtype == SCRIPT && nd->u.scr.shop && nd->u.scr.shop->type == NST_ZENY) )
+ if (!(nd->subtype == SCRIPT && nd->u.scr.shop && (nd->u.scr.shop->type == NST_ZENY || nd->u.scr.shop->type == NST_MARKET)))
return 1;
}