mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 22:37:06 +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)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10098"
|
||||
#define REVISION_NR "10099"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue