From ee1290403076d39d25def09753cf20c1dd157d09 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 14 Dec 2013 19:17:31 -0200 Subject: 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 --- src/map/mail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/mail.c') 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; -- cgit v1.2.3-70-g09d2