summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/mail2recv.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/mail2recv.cpp b/src/net/eathena/mail2recv.cpp
index eb4c8d6b6..b3ffae6c0 100644
--- a/src/net/eathena/mail2recv.cpp
+++ b/src/net/eathena/mail2recv.cpp
@@ -297,7 +297,8 @@ void Mail2Recv::processMailListPage(Net::MessageIn &msg)
MailMessage *const mail = new MailMessage;
mail->id = msg.readInt64("mail id");
mail->read = msg.readUInt8("is read") != 0U ? true : false;
- mail->type = msg.readUInt8("type");
+ mail->type = static_cast<MailMessageType::Type>(
+ msg.readUInt8("type"));
mail->sender = msg.readString(24, "sender name");
mail->time = msg.readInt32("reg time");
mail->strTime = timeToStr(mail->time);