mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
Fix locale selection at server load.
--HG-- branch : trunk
This commit is contained in:
@@ -1724,7 +1724,7 @@ void World::DetectDBCLang()
|
||||
std::string availableLocalsStr;
|
||||
|
||||
uint8 default_locale = MAX_LOCALE;
|
||||
for (uint8 i = default_locale-1; i >= 0; --i)
|
||||
for (uint8 i = default_locale-1; i < MAX_LOCALE; --i) // -1 will be 255 due to uint8
|
||||
{
|
||||
if (strlen(race->name[i]) > 0) // check by race names
|
||||
{
|
||||
|
||||
@@ -193,7 +193,7 @@ enum LocaleConstant
|
||||
LOCALE_ruRU = 8
|
||||
};
|
||||
|
||||
#define MAX_LOCALE 9
|
||||
const uint8 MAX_LOCALE = 9;
|
||||
|
||||
extern char const* localeNames[MAX_LOCALE];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user