From 5bac361592bd112435abb66e1ff09bcec1c0d3f0 Mon Sep 17 00:00:00 2001 From: Armand-Gabriel-Camner <38495772+armandgabriel@users.noreply.github.com> Date: Wed, 9 Jan 2019 21:58:05 +0200 Subject: [PATCH] Changed email return for item that can't be equiped anymore. Before the email was sent with an empty body and the subject was to long to be displayed in the player email. Now the Email is sent with the subject 'Item could not be loaded to inventory.' and the body as the subject message before. (#71) --- src/game/Object/Player.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/Object/Player.cpp b/src/game/Object/Player.cpp index c5776df7..7bc1c3bc 100644 --- a/src/game/Object/Player.cpp +++ b/src/game/Object/Player.cpp @@ -14833,11 +14833,11 @@ void Player::_LoadInventory(QueryResult* result, uint32 timediff) // send by mail problematic items while (!problematicItems.empty()) { - std::string subject = GetSession()->GetMangosString(LANG_NOT_EQUIPPED_ITEM); - + std::string subject = "Item could not be loaded to inventory."; + std::string content = GetSession()->GetMangosString(LANG_NOT_EQUIPPED_ITEM); // fill mail MailDraft draft(subject); - + draft.SetSubjectAndBody(subject,content); for (int i = 0; !problematicItems.empty() && i < MAX_MAIL_ITEMS; ++i) { Item* item = problematicItems.front();