mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[10831] Fixed crash at send mail from console
Inspired by patch from rsa.
This commit is contained in:
parent
81b6cb2751
commit
4ad58ecb49
4 changed files with 5 additions and 5 deletions
|
|
@ -1768,7 +1768,7 @@ bool ChatHandler::HandleSendMailCommand(char* args)
|
|||
std::string text = msgText;
|
||||
|
||||
// from console show nonexistent sender
|
||||
MailSender sender(m_session ? m_session->GetPlayer() : NULL, MAIL_STATIONERY_GM);
|
||||
MailSender sender(MAIL_NORMAL, m_session ? m_session->GetPlayer()->GetObjectGuid().GetCounter() : 0, MAIL_STATIONERY_GM);
|
||||
|
||||
MailDraft(subject, text)
|
||||
.SendMailTo(MailReceiver(target, target_guid),sender);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue