aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGround.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2010-04-11 11:16:42 +0400
committern0n4m3 <none@none>2010-04-11 11:16:42 +0400
commitbe95faff2370db63eedd812ab4e70bb87e34b570 (patch)
treed2db46e9e6161abe0dd8740461979b8309ef79c7 /src/game/BattleGround.cpp
parent457df07bd4fd1b394cfcdbb63d5ff76e87fe8c89 (diff)
Fix mail, professions, group loot, console spam, and some fixes. Big thx to TOM_RUS.
--HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r--src/game/BattleGround.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
index 6e538efd858..fbba3cc89ec 100644
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -954,10 +954,9 @@ void BattleGround::SendRewardMarkByMail(Player *plr,uint32 mark, uint32 count)
// text
std::string textFormat = plr->GetSession()->GetTrinityString(LANG_BG_MARK_BY_MAIL);
char textBuf[300];
- snprintf(textBuf,300,textFormat.c_str(),GetName(),GetName());
- uint32 itemTextId = objmgr.CreateItemText(textBuf);
+ snprintf(textBuf, 300, textFormat.c_str(), GetName(), GetName());
- MailDraft(subject, itemTextId)
+ MailDraft(subject, textBuf)
.AddItem(markItem)
.SendMailTo(plr, MailSender(MAIL_CREATURE, bmEntry));
}