aboutsummaryrefslogtreecommitdiff
path: root/src/game/World.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/World.cpp')
-rw-r--r--src/game/World.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/World.cpp b/src/game/World.cpp
index 6b141057b86..b06f02e90b5 100644
--- a/src/game/World.cpp
+++ b/src/game/World.cpp
@@ -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
{