mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[10099] Prevent retunr mails to not existed characters.
Thanks to laviniu for find bug.
This commit is contained in:
parent
6c6e642acc
commit
1780113912
2 changed files with 3 additions and 3 deletions
|
|
@ -385,8 +385,8 @@ void WorldSession::HandleMailReturnToSender(WorldPacket & recv_data )
|
|||
CharacterDatabase.CommitTransaction();
|
||||
pl->RemoveMail(mailId);
|
||||
|
||||
// send back only to players and simple drop for other cases
|
||||
if (m->messageType == MAIL_NORMAL)
|
||||
// send back only to existed players and simple drop for other cases
|
||||
if (m->messageType == MAIL_NORMAL && m->sender)
|
||||
{
|
||||
MailDraft draft(m->subject, m->body);
|
||||
if (m->mailTemplateId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue