Skip to content
Permalink
Browse files

Merge pull request #2266 from dastgirp/coverity/fix2

Fixed a condition in RoDEX attachment
  • Loading branch information
MishimaHaruna committed Jan 12, 2020
2 parents 052cbc8 + 64bbdb5 commit 776befcb4eedded935451078f00ae9ed50e8bd3e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/map/clif.c
@@ -16891,7 +16891,7 @@ static 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->status.zeny > MAX_ZENY ) {
if( sd->mail.inbox.msg[i].zeny > MAX_ZENY - sd->status.zeny ) {
clif->mail_getattachment(fd, 1);
return;
}

0 comments on commit 776befc

Please sign in to comment.
You can’t perform that action at this time.