Core: Cleanup locale handling.

It also fixes the recent problem of strange strings.

--HG--
branch : trunk
This commit is contained in:
linencloth
2010-09-17 07:04:29 +02:00
parent 5de48a67c6
commit d8a854d6e0
19 changed files with 39 additions and 45 deletions
+1 -1
View File
@@ -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)