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
@@ -417,7 +417,7 @@ public:
void SendText(int32 iTextEntry, Player* pPlayer)
{
int loc_idx = pPlayer->GetSession()->GetSessionDbLocaleIndex();
LocaleConstant loc_idx = pPlayer->GetSession()->GetSessionDbLocaleIndex();
const char* text = sObjectMgr.GetTrinityString(iTextEntry, loc_idx);
sWorld.SendServerMessage(SERVER_MSG_STRING, text, pPlayer);
}