Skip to content

Commit 64bbdb5

Browse files
committed
Fixed a condition which was always false in rodex.
1 parent 852c133 commit 64bbdb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/map/clif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15876,7 +15876,7 @@ static void clif_parse_Mail_getattach(int fd, struct map_session_data *sd)
1587615876
if( sd->mail.inbox.msg[i].zeny < 1 && (sd->mail.inbox.msg[i].item.nameid < 1 || sd->mail.inbox.msg[i].item.amount < 1) )
1587715877
return;
1587815878

15879-
if( sd->mail.inbox.msg[i].zeny + sd->status.zeny > MAX_ZENY ) {
15879+
if( sd->mail.inbox.msg[i].zeny > MAX_ZENY - sd->status.zeny ) {
1588015880
clif->mail_getattachment(fd, 1);
1588115881
return;
1588215882
}

0 commit comments

Comments
 (0)