summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-31 19:01:32 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-11 20:16:29 +0300
commit4c52388bcd8fe0b7025fda2693bafa23998244a9 (patch)
tree6865bd593752d2f4d4cad8aa05f1f9f298a2da74 /src
parenteac5e483816488848512fe34e2ebfd1e9f022564 (diff)
downloadhercules-4c52388bcd8fe0b7025fda2693bafa23998244a9.tar.gz
hercules-4c52388bcd8fe0b7025fda2693bafa23998244a9.tar.bz2
hercules-4c52388bcd8fe0b7025fda2693bafa23998244a9.tar.xz
hercules-4c52388bcd8fe0b7025fda2693bafa23998244a9.zip
Allow sell items to market shop.
Diffstat (limited to 'src')
-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 4f74ea5a5..36078837f 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;
}