diff options
author | shennetsind <ind@henn.et> | 2013-12-14 19:17:31 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-12-14 19:17:31 -0200 |
commit | ee1290403076d39d25def09753cf20c1dd157d09 (patch) | |
tree | 32a8b66dff44752551577bbd77e7c6bdd76224d4 /src/map/vending.c | |
parent | 5c4f7b9047ff14018b7c46bf1ead71765d1ff869 (diff) | |
download | hercules-ee1290403076d39d25def09753cf20c1dd157d09.tar.gz hercules-ee1290403076d39d25def09753cf20c1dd157d09.tar.bz2 hercules-ee1290403076d39d25def09753cf20c1dd157d09.tar.xz hercules-ee1290403076d39d25def09753cf20c1dd157d09.zip |
Replaced pc->get_group_level with a macro (pc_get_group_level)
Because 2 jumps to get a single value is just awful.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/vending.c')
-rw-r--r-- | src/map/vending.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/vending.c b/src/map/vending.c index f16a208e4..dc22499dd 100644 --- a/src/map/vending.c +++ b/src/map/vending.c @@ -258,7 +258,7 @@ void vending_openvending(struct map_session_data* sd, const char* message, const || 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 || (sd->status.cart[index].bound && !pc->can_give_bound_items(sd)) // can't trade bound items w/o permission - || !itemdb_cantrade(&sd->status.cart[index], pc->get_group_level(sd), pc->get_group_level(sd)) ) // untradeable item + || !itemdb_cantrade(&sd->status.cart[index], pc_get_group_level(sd), pc_get_group_level(sd)) ) // untradeable item continue; sd->vending[i].index = index; |