summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-31 19:01:32 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-28 15:52:16 +0300
commit4ceef84285d750fde4b81f475e02befa55aed2e4 (patch)
treeaff5d66574d65695c7b58afcb43dcd5e66465f97
parentc1d86fb39a1567edb3c7c5c174b7aeafb4cc9266 (diff)
downloadhercules-4ceef84285d750fde4b81f475e02befa55aed2e4.tar.gz
hercules-4ceef84285d750fde4b81f475e02befa55aed2e4.tar.bz2
hercules-4ceef84285d750fde4b81f475e02befa55aed2e4.tar.xz
hercules-4ceef84285d750fde4b81f475e02befa55aed2e4.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;
}