summaryrefslogtreecommitdiff
path: root/src/map/vending.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-06 22:40:57 -0200
committershennetsind <ind@henn.et>2013-11-06 22:40:57 -0200
commitb1f7e524a79ce3e7afd64becaa7657c71d59f18f (patch)
tree3d0f808a23cb1ead6cc0811542ac4263643203dc /src/map/vending.c
parent47401a4195c58e14f12200f1ba6aeb34ecd87df7 (diff)
parent6be40f56a21e48505baa4ff69acc198aa6206bf1 (diff)
downloadhercules-b1f7e524a79ce3e7afd64becaa7657c71d59f18f.tar.gz
hercules-b1f7e524a79ce3e7afd64becaa7657c71d59f18f.tar.bz2
hercules-b1f7e524a79ce3e7afd64becaa7657c71d59f18f.tar.xz
hercules-b1f7e524a79ce3e7afd64becaa7657c71d59f18f.zip
Merge remote-tracking branch 'origin/master'
Signed-off-by: shennetsind <ind@henn.et> Conflicts: conf/messages.conf src/common/mmo.h src/map/pc_groups.c src/map/pc_groups.h
Diffstat (limited to 'src/map/vending.c')
-rw-r--r--src/map/vending.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/vending.c b/src/map/vending.c
index c7a2dfa68..14a5e64d1 100644
--- a/src/map/vending.c
+++ b/src/map/vending.c
@@ -257,7 +257,8 @@ void vending_openvending(struct map_session_data* sd, const char* message, const
|| !sd->status.cart[index].identify // unidentified item
|| sd->status.cart[index].attribute == 1 // broken item
|| sd->status.cart[index].expire_time // It should not be in the cart but just in case
- || !itemdb_cantrade(&sd->status.cart[index], pc->get_group_level(sd), pc->get_group_level(sd)) ) // untradeable item
+ || (sd->status.cart[index].bound && !pc->can_give_bounded_items(sd)) // can't trade account bound items and has no permission
+ || !itemdb_cantrade(&sd->status.cart[index], pc->get_group_level(sd), pc->get_group_level(sd)) ) // untradeable item
continue;
sd->vending[i].index = index;