From 190793600675c03e76b527f12142d33f119d4f92 Mon Sep 17 00:00:00 2001 From: zephyrus Date: Sun, 28 Oct 2007 15:12:54 +0000 Subject: - Fixed a bug on the Attachment [Mail System] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11593 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mail.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/mail.c') diff --git a/src/map/mail.c b/src/map/mail.c index c95d6fbfa..e1c006a0a 100644 --- a/src/map/mail.c +++ b/src/map/mail.c @@ -55,7 +55,7 @@ unsigned char mail_setitem(struct map_session_data *sd, int idx, int amount) if (idx == 0) { // Zeny Transfer if (amount < 0) - return 2; //FIXME: totally wrong value + return 0; if (amount > sd->status.zeny) amount = sd->status.zeny; @@ -105,6 +105,8 @@ bool mail_getattach(struct map_session_data *sd, struct mail_message *msg) memcpy(&msg->item, &sd->status.inventory[n], sizeof(struct item)); msg->item.amount = sd->mail.amount; } + else + memset(&msg->item, 0x00, sizeof(struct item)); msg->zeny = sd->mail.zeny; -- cgit v1.2.3-60-g2f50