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-18 02:12:18 +0300
commit84a9ae26c0920ec1550858736f9be80247e1ab4c (patch)
tree683137fb0c0b14af2d3c92ab4dee99035092a7d1
parent50836a436c895c940db38c5572aea9547098777e (diff)
downloadhercules-84a9ae26c0920ec1550858736f9be80247e1ab4c.tar.gz
hercules-84a9ae26c0920ec1550858736f9be80247e1ab4c.tar.bz2
hercules-84a9ae26c0920ec1550858736f9be80247e1ab4c.tar.xz
hercules-84a9ae26c0920ec1550858736f9be80247e1ab4c.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 6b55bf5ae..8be44d096 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;
}