Core: Cleanup locale handling.
It also fixes the recent problem of strange strings. --HG-- branch : trunk
This commit is contained in:
1 parent
5de48a67c6
commit
d8a854d6e0
19 files changed
+39
-45
No files matched your search
@@ -3040,7 +3040,7 @@ void Map::ScriptsProcess()
|
||||
if (Player *pSource = _GetScriptPlayerSourceOrTarget(source, target, step.script))
|
||||
{
|
||||
uint64 targetGUID = target ? target->GetGUID() : 0;
|
||||
int loc_idx = pSource->GetSession()->GetSessionDbLocaleIndex();
|
||||
LocaleConstant loc_idx = pSource->GetSession()->GetSessionDbLocaleIndex();
|
||||
const std::string text(sObjectMgr.GetTrinityString(step.script->dataint, loc_idx));
|
||||
|
||||
switch (step.script->datalong)
|
||||
|
||||
Reference in new issue
Block a user