diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-25 03:49:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-25 03:49:54 +0300 |
commit | d11a1f693cd1c43c4d1977f65ef16eba11d872b1 (patch) | |
tree | 8b03625817f2ecc09b4145f321d63845a12d6fa3 /src/net/eathena | |
parent | b68c40d34eecf9da09a00101286b046d93927161 (diff) | |
download | manaplus-d11a1f693cd1c43c4d1977f65ef16eba11d872b1.tar.gz manaplus-d11a1f693cd1c43c4d1977f65ef16eba11d872b1.tar.bz2 manaplus-d11a1f693cd1c43c4d1977f65ef16eba11d872b1.tar.xz manaplus-d11a1f693cd1c43c4d1977f65ef16eba11d872b1.zip |
Show message information in mail list.
Show signs for item and money.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/mail2recv.cpp | 3 |
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); |