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-05 16:05:06 +0300
commit74447d34eb7a97b6f26cee20057ae47ae9d3c5d3 (patch)
treec18e0bae54e497455d2ab9736067173a9561b423
parent6424873bd99d04e91083fb4331ba365e2987aff4 (diff)
downloadhercules-74447d34eb7a97b6f26cee20057ae47ae9d3c5d3.tar.gz
hercules-74447d34eb7a97b6f26cee20057ae47ae9d3c5d3.tar.bz2
hercules-74447d34eb7a97b6f26cee20057ae47ae9d3c5d3.tar.xz
hercules-74447d34eb7a97b6f26cee20057ae47ae9d3c5d3.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;
}