summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 15:04:14 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-29 15:04:14 +0000
commitb61133ee839f83548f1b8c955fafddbf4cfecf27 (patch)
treea04a4947105c627889807086527f70431afe3ca8 /src/map/clif.c
parent181d6d4ee83bd3d8cc01f56f65b4188304602139 (diff)
downloadhercules-b61133ee839f83548f1b8c955fafddbf4cfecf27.tar.gz
hercules-b61133ee839f83548f1b8c955fafddbf4cfecf27.tar.bz2
hercules-b61133ee839f83548f1b8c955fafddbf4cfecf27.tar.xz
hercules-b61133ee839f83548f1b8c955fafddbf4cfecf27.zip
Added mail zeny loss prevention, bugreport:2919
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15310 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 35e8646fd..01fabf6d9 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -13032,6 +13032,9 @@ void clif_parse_Mail_getattach(int fd, struct map_session_data *sd)
if( sd->mail.inbox.msg[i].zeny < 1 && (sd->mail.inbox.msg[i].item.nameid < 1 || sd->mail.inbox.msg[i].item.amount < 1) )
return;
+ if( ( sd->mail.inbox.msg[i].zeny + sd->mail.inbox.msg[i].zeny ) > MAX_ZENY )
+ return;
+
if( sd->mail.inbox.msg[i].item.nameid > 0 )
{
struct item_data *data;