mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 23:50:44 +01:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user