From 78803c9f09feff5213a394a84e28b8245f7e2efa Mon Sep 17 00:00:00 2001 From: Shocker Date: Tue, 28 Sep 2010 08:21:51 +0300 Subject: Magic numbers cleanup: - Replace many magic numbers with constants - Use enum for vehicle flags/seat flags - Correct structure for ItemRandomSuffixEntry --HG-- branch : trunk --- src/server/shared/Common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/shared/Common.cpp') diff --git a/src/server/shared/Common.cpp b/src/server/shared/Common.cpp index 49a45d67131..6393dfa8ed4 100644 --- a/src/server/shared/Common.cpp +++ b/src/server/shared/Common.cpp @@ -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); -- cgit v1.2.3