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-09 14:31:57 +0300
commite9532b9c1a77644f21e829c779425037be285fd0 (patch)
tree37585501a249810b90b446556a07abcc507e3311
parent1ba65502886eebedc7befa56cff559b4af624992 (diff)
downloadhercules-e9532b9c1a77644f21e829c779425037be285fd0.tar.gz
hercules-e9532b9c1a77644f21e829c779425037be285fd0.tar.bz2
hercules-e9532b9c1a77644f21e829c779425037be285fd0.tar.xz
hercules-e9532b9c1a77644f21e829c779425037be285fd0.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 a79062c77..3bbddea1a 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2095,7 +2095,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;
}