summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-31 19:01:32 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-08 19:59:38 +0300
commit5f3b81c8418d58c8f9c59cbf313e8559db16048c (patch)
treef568992506124ac3b8dda1a274e1f552d82c9ddc
parentc7b95260fa3f4d77138fa34710f60365f4c86c87 (diff)
downloadhercules-5f3b81c8418d58c8f9c59cbf313e8559db16048c.tar.gz
hercules-5f3b81c8418d58c8f9c59cbf313e8559db16048c.tar.bz2
hercules-5f3b81c8418d58c8f9c59cbf313e8559db16048c.tar.xz
hercules-5f3b81c8418d58c8f9c59cbf313e8559db16048c.zip
Allow sell items to market shop.
-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 945a84957..99d50bd04 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2167,7 +2167,7 @@ int npc_selllist(struct map_session_data *sd, struct itemlist *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;
}