diff options
Diffstat (limited to 'src/server/game/Chat/Chat.cpp')
-rw-r--r-- | src/server/game/Chat/Chat.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp index 94c33a08585..17cf95b1cc8 100644 --- a/src/server/game/Chat/Chat.cpp +++ b/src/server/game/Chat/Chat.cpp @@ -1616,7 +1616,7 @@ valid examples: return false; } - for (uint8 i=0; i<MAX_LOCALE; ++i) + for (uint8 i = 0; i < TOTAL_LOCALES; ++i) { uint32 skillLineNameLength = strlen(skillLine->name[i]); if (skillLineNameLength > 0 && strncmp(skillLine->name[i], buffer, skillLineNameLength) == 0) @@ -1629,7 +1629,7 @@ valid examples: } } bool foundName = false; - for (uint8 i=0; i<MAX_LOCALE; ++i) + for (uint8 i = 0; i < TOTAL_LOCALES; ++i) { if (*linkedSpell->SpellName[i] && strcmp(linkedSpell->SpellName[i], buffer) == 0) { @@ -1688,7 +1688,7 @@ valid examples: ItemLocale const *il = sObjectMgr.GetItemLocale(linkedItem->ItemId); bool foundName = false; - for (uint8 dbIndex = LOCALE_koKR; dbIndex < MAX_LOCALE; ++dbIndex) + for (uint8 dbIndex = LOCALE_koKR; dbIndex < TOTAL_LOCALES; ++dbIndex) { if (il == NULL || dbIndex >= il->Name.size()) // using strange database/client combinations can lead to this case @@ -1718,7 +1718,7 @@ valid examples: else if (linkedAchievement) { bool foundName = false; - for (uint8 i=0; i<MAX_LOCALE; ++i) + for (uint8 i = 0; i < TOTAL_LOCALES; ++i) { if (*linkedAchievement->name[i] && strcmp(linkedAchievement->name[i], buffer) == 0) { |