Core: Clean up here and there.
*replase postfix iterator increment\decrement with prefix in cycles *replase strlen(*char) != 0 with *char[0] != '\0' *replase strlen(rStr.c_str()) with rStr.length()
This commit is contained in:
@@ -1754,7 +1754,7 @@ void World::DetectDBCLang()
|
||||
uint8 default_locale = TOTAL_LOCALES;
|
||||
for (uint8 i = default_locale-1; i < TOTAL_LOCALES; --i) // -1 will be 255 due to uint8
|
||||
{
|
||||
if (strlen(race->name[i]) > 0) // check by race names
|
||||
if (race->name[i][0] != '\0') // check by race names
|
||||
{
|
||||
default_locale = i;
|
||||
m_availableDbcLocaleMask |= (1 << i);
|
||||
|
||||
Reference in New Issue
Block a user