mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 20:02:25 +01:00
Magic numbers cleanup:
- Replace many magic numbers with constants - Use enum for vehicle flags/seat flags - Correct structure for ItemRandomSuffixEntry --HG-- branch : trunk
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
char const* localeNames[MAX_LOCALE] = {
|
||||
char const* localeNames[TOTAL_LOCALES] = {
|
||||
"enUS",
|
||||
"koKR",
|
||||
"frFR",
|
||||
@@ -34,7 +34,7 @@ char const* localeNames[MAX_LOCALE] = {
|
||||
|
||||
LocaleConstant GetLocaleByName(const std::string& name)
|
||||
{
|
||||
for (uint32 i = 0; i < MAX_LOCALE; ++i)
|
||||
for (uint32 i = 0; i < TOTAL_LOCALES; ++i)
|
||||
if(name==localeNames[i])
|
||||
return LocaleConstant(i);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user