summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-31 19:01:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-04 15:49:12 +0300
commit7b18e89f8086d624f3756902f7bf89fef32de8c7 (patch)
tree79cc0575fdb81bbd7225246046cb7de4fef76d70
parent7c62dd9eac36697f2771817bdca4dd1e6c0dfd5c (diff)
downloadhercules-7b18e89f8086d624f3756902f7bf89fef32de8c7.tar.gz
hercules-7b18e89f8086d624f3756902f7bf89fef32de8c7.tar.bz2
hercules-7b18e89f8086d624f3756902f7bf89fef32de8c7.tar.xz
hercules-7b18e89f8086d624f3756902f7bf89fef32de8c7.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 7044fefcf..46cb53397 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2082,7 +2082,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;
}