Core/Misc: Fixed some of the Coverity defects

This commit is contained in:
Intel
2014-12-01 02:25:29 +02:00
parent 1153b89d3d
commit 44cede7684
8 changed files with 27 additions and 29 deletions

View File

@@ -60,7 +60,7 @@ class PlayerTextBuilder
{
std::string const& text = sCreatureTextMgr->GetLocalizedChatString(_source->GetEntry(), _gender, _textGroup, _textId, locale);
WorldPackets::Chat::Chat packet;
return ChatHandler::BuildChatPacket(&packet, _msgType, Language(_language), _talker, _target, text, 0, "", locale);
ChatHandler::BuildChatPacket(&packet, _msgType, Language(_language), _talker, _target, text, 0, "", locale);
data = *packet.Write();
}