COre/Mail: Don't allow to mark delete mails as read.

This commit is contained in:
jackpoz
2014-06-28 17:53:17 +02:00
parent 22c26548f3
commit f3852d19e7

View File

@@ -345,7 +345,7 @@ void WorldSession::HandleMailMarkAsRead(WorldPacket& recvData)
Player* player = _player;
Mail* m = player->GetMail(mailId);
if (m)
if (m && m->state != MAIL_STATE_DELETED)
{
if (player->unReadMails)
--player->unReadMails;