mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
COre/Mail: Don't allow to mark delete mails as read.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user