From f8e853d8f62f421082b8b323fc96690edae8e316 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Wed, 23 Jun 2010 10:28:21 +0400 Subject: [PATCH] [10099] Prevent retunr mails to not existed characters. Thanks to laviniu for find bug. --- src/game/Mail.cpp | 4 ++-- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/Mail.cpp b/src/game/Mail.cpp index f1438626b..b5eb6007b 100644 --- a/src/game/Mail.cpp +++ b/src/game/Mail.cpp @@ -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) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index baa0efd61..fa14e9e94 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10098" + #define REVISION_NR "10099" #endif // __REVISION_NR_H__ -- 2.11.4.GIT