summaryrefslogtreecommitdiff
path: root/src/map/mail.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mail.c')
-rw-r--r--src/map/mail.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/mail.c b/src/map/mail.c
index 1b9ebb11a..d6fc875a3 100644
--- a/src/map/mail.c
+++ b/src/map/mail.c
@@ -73,11 +73,14 @@ unsigned char mail_setitem(struct map_session_data *sd, int idx, int amount)
{
if (idx == 0)
{ // Zeny Transfer
- if (amount < 0)
+ if( amount < 0 )
return 0;
- if (amount > sd->status.zeny)
+ if( amount > sd->status.zeny )
amount = sd->status.zeny;
+ if( !pc_can_give_items(pc_isGM(sd)) )
+ amount = 0;
+
sd->mail.zeny = amount;
clif_updatestatus(sd, SP_ZENY);
return 0;