Core/Scripts: pass message parameter by reference in OnChat methods to make it possible to be modified inside the script.

--HG--
branch : trunk
This commit is contained in:
azazel
2010-11-17 18:14:35 +06:00
parent 169c2ef87a
commit 4fb572015a
9 changed files with 33 additions and 33 deletions

View File

@@ -390,7 +390,7 @@ void Map::ScriptsProcess()
{
uint64 targetGUID = target ? target->GetGUID() : 0;
LocaleConstant loc_idx = pSource->GetSession()->GetSessionDbLocaleIndex();
const std::string text(sObjectMgr.GetTrinityString(step.script->Talk.TextID, loc_idx));
std::string text(sObjectMgr.GetTrinityString(step.script->Talk.TextID, loc_idx));
switch (step.script->Talk.ChatType)
{