Core: Cleanup locale handling.

It also fixes the recent problem of strange strings.

--HG--
branch : trunk
This commit is contained in:
linencloth committed 2010-09-17 07:04:29 +02:00
1 parent 5de48a67c6
commit d8a854d6e0
19 files changed
+39 -45

No files matched your search

@@ -1710,9 +1710,9 @@ void GameObject::EventInform(uint32 eventId)
}
// overwrite WorldObject function for proper name localization
const char* GameObject::GetNameForLocaleIdx(int32 loc_idx) const
const char* GameObject::GetNameForLocaleIdx(LocaleConstant loc_idx) const
{
if (loc_idx >= 0)
if (loc_idx != DEFAULT_LOCALE)
{
uint8 uloc_idx = uint8(loc_idx);
if (GameObjectLocale const *cl = sObjectMgr.GetGameObjectLocale(GetEntry()))