Fix locale selection at server load.
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user