summaryrefslogtreecommitdiff
path: root/src/char/int_mail.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2015-01-20 13:27:32 +0100
committerHaruna <haru@dotalux.com>2015-01-20 13:27:32 +0100
commit40f73981d9bacfc9e7b032790a5c35e32f68ac2a (patch)
treefe39ba540986f856fa9807d9ff61dbd0c24139b5 /src/char/int_mail.c
parent4ae2b9b72dd4fce3d7a7778222d1c39abbb564a4 (diff)
parentd8400bcc065367779f67740bc59aac976bd5eda1 (diff)
downloadhercules-40f73981d9bacfc9e7b032790a5c35e32f68ac2a.tar.gz
hercules-40f73981d9bacfc9e7b032790a5c35e32f68ac2a.tar.bz2
hercules-40f73981d9bacfc9e7b032790a5c35e32f68ac2a.tar.xz
hercules-40f73981d9bacfc9e7b032790a5c35e32f68ac2a.zip
Merge pull request #448 from HerculesWS/window_fix
Fixes Compile Error on Windows
Diffstat (limited to 'src/char/int_mail.c')
-rw-r--r--src/char/int_mail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/int_mail.c b/src/char/int_mail.c
index 79d20cbd1..17fb9d424 100644
--- a/src/char/int_mail.c
+++ b/src/char/int_mail.c
@@ -51,8 +51,8 @@ static int inter_mail_fromsql(int char_id, struct mail_data* md)
for (i = 0; i < MAIL_MAX_INBOX && SQL_SUCCESS == SQL->NextRow(inter->sql_handle); ++i )
{
- msg = &md->msg[i];
struct item *item;
+ msg = &md->msg[i];
SQL->GetData(inter->sql_handle, 0, &data, NULL); msg->id = atoi(data);
SQL->GetData(inter->sql_handle, 1, &data, NULL); safestrncpy(msg->send_name, data, NAME_LENGTH);
SQL->GetData(inter->sql_handle, 2, &data, NULL); msg->send_id = atoi(data);