summaryrefslogtreecommitdiff
path: root/src/net/eathena/mail2recv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-25 03:49:54 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-25 03:49:54 +0300
commitd11a1f693cd1c43c4d1977f65ef16eba11d872b1 (patch)
tree8b03625817f2ecc09b4145f321d63845a12d6fa3 /src/net/eathena/mail2recv.cpp
parentb68c40d34eecf9da09a00101286b046d93927161 (diff)
downloadplus-d11a1f693cd1c43c4d1977f65ef16eba11d872b1.tar.gz
plus-d11a1f693cd1c43c4d1977f65ef16eba11d872b1.tar.bz2
plus-d11a1f693cd1c43c4d1977f65ef16eba11d872b1.tar.xz
plus-d11a1f693cd1c43c4d1977f65ef16eba11d872b1.zip
Show message information in mail list.
Show signs for item and money.
Diffstat (limited to 'src/net/eathena/mail2recv.cpp')
-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);