Core/Cleanup: move repeating code for locale strings retrieval into separate method. Related code cleanup.

--HG--
branch : trunk
This commit is contained in:
azazel
2010-08-27 00:57:49 +06:00
parent 4b5b4afbe9
commit e3c2bdb722
11 changed files with 85 additions and 194 deletions
+1 -1
View File
@@ -416,7 +416,7 @@ void ObjectMgr::AddLocaleString(std::string& s, LocaleConstant locale, StringVec
int idx = GetOrNewIndexForLocale(locale);
if (idx >= 0)
{
if (int(data.size()) <= idx)
if (data.size() <= size_t(idx))
data.resize(idx + 1);
data[idx] = s;