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-14 23:40:26 +0300
commitf2f9635726906a21b7afb2e479e6371dff40db8d (patch)
treebf2ee7459c32b5c60c8829eb4a3bedcc1896e252
parent3d866d305971f9538a2a976bd2ab3b916547f873 (diff)
downloadhercules-f2f9635726906a21b7afb2e479e6371dff40db8d.tar.gz
hercules-f2f9635726906a21b7afb2e479e6371dff40db8d.tar.bz2
hercules-f2f9635726906a21b7afb2e479e6371dff40db8d.tar.xz
hercules-f2f9635726906a21b7afb2e479e6371dff40db8d.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;
}