Resolve some compile warnings

* Fixes #2245.
Thanks to @lelouch22!
This commit is contained in:
aleos 2017-07-08 11:42:53 -04:00
parent b2aa7e698d
commit 4dfeeade06
2 changed files with 6 additions and 3 deletions

View File

@ -15231,9 +15231,9 @@ void clif_Mail_read(struct map_session_data *sd, int mail_id)
struct mail_message *msg = &sd->mail.inbox.msg[i];
struct item *item;
struct item_data *data;
int msg_len = strlen(msg->body), len, count = 0;
int msg_len = strlen(msg->body), len;
#if PACKETVER >= 20150513
int offset, j, itemsize;
int offset, j, itemsize, count = 0;
#endif
if( msg_len == 0 ) {

View File

@ -132,7 +132,10 @@ enum mail_attach_result mail_setitem(struct map_session_data *sd, short idx, uin
// clif_updatestatus(sd, SP_ZENY);
return MAIL_ATTACH_SUCCESS;
} else { // Item Transfer
int i, j, total = 0;
int i;
#if PACKETVER >= 20150513
int j, total = 0;
#endif
idx -= 2;