diff options
author | shennetsind <ind@henn.et> | 2013-11-06 22:40:57 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-11-06 22:40:57 -0200 |
commit | b1f7e524a79ce3e7afd64becaa7657c71d59f18f (patch) | |
tree | 3d0f808a23cb1ead6cc0811542ac4263643203dc /src/map/vending.c | |
parent | 47401a4195c58e14f12200f1ba6aeb34ecd87df7 (diff) | |
parent | 6be40f56a21e48505baa4ff69acc198aa6206bf1 (diff) | |
download | hercules-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.c | 3 |
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; |