summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-31 19:01:32 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-20 17:38:37 +0300
commit2e408bb87ac71345c67744ca140265bdf318968e (patch)
tree9514a5f6ddcb5393b418d8234d447efdbc715d53
parent67e1a662f2f1edbe4ec7469ffa41f37971b70d5d (diff)
downloadhercules-2e408bb87ac71345c67744ca140265bdf318968e.tar.gz
hercules-2e408bb87ac71345c67744ca140265bdf318968e.tar.bz2
hercules-2e408bb87ac71345c67744ca140265bdf318968e.tar.xz
hercules-2e408bb87ac71345c67744ca140265bdf318968e.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;
}