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/mail.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/mail.c')
-rw-r--r-- | src/map/mail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mail.c b/src/map/mail.c index 007f7592d..020d92383 100644 --- a/src/map/mail.c +++ b/src/map/mail.c @@ -82,7 +82,7 @@ unsigned char mail_setitem(struct map_session_data *sd, int idx, int amount) { if( amount < 0 || amount > sd->status.inventory[idx].amount ) return 1; if( !pc->can_give_items(sd) || sd->status.inventory[idx].expire_time || - !itemdb_canmail(&sd->status.inventory[idx],pc->get_group_level(sd)) || + !itemdb_canmail(&sd->status.inventory[idx],pc_get_group_level(sd)) || (sd->status.inventory[idx].bound && !pc->can_give_bound_items(sd)) ) return 1; |