summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-31 19:01:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-14 18:37:36 +0300
commit647f21b19a863d62b178138723a423bf16605c43 (patch)
treefd335a259f20ef9317d9b94f88d2c4141a61947e
parente02ed503df2e3dd40442facead687283c40e1b7a (diff)
downloadhercules-647f21b19a863d62b178138723a423bf16605c43.tar.gz
hercules-647f21b19a863d62b178138723a423bf16605c43.tar.bz2
hercules-647f21b19a863d62b178138723a423bf16605c43.tar.xz
hercules-647f21b19a863d62b178138723a423bf16605c43.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 bb0e772ae..47b739632 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2096,7 +2096,7 @@ int npc_selllist(struct map_session_data* sd, int n, unsigned short* 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;
}