diff options
Diffstat (limited to 'src/common/Common.cpp')
-rw-r--r-- | src/common/Common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Common.cpp b/src/common/Common.cpp index b768461e274..a176941e6f9 100644 --- a/src/common/Common.cpp +++ b/src/common/Common.cpp @@ -33,11 +33,11 @@ char const* localeNames[TOTAL_LOCALES] = "itIT" }; -LocaleConstant GetLocaleByName(const std::string& name) +LocaleConstant GetLocaleByName(std::string const& name) { for (uint32 i = 0; i < TOTAL_LOCALES; ++i) if (name == localeNames[i]) return LocaleConstant(i); - return LOCALE_enUS; // including enGB case + return TOTAL_LOCALES; } |