chore(DB/SQL): Correct file to comply with standards (#14953)

This commit is contained in:
Skjalf
2023-02-11 19:50:19 -03:00
committed by GitHub
parent 18cf1761dc
commit 66f4feb1da
2 changed files with 11 additions and 8 deletions

View File

@@ -453,7 +453,7 @@ void ObjectMgr::LoadPetNamesLocales()
uint32 oldMSTime = getMSTime();
// 0 1 2 3
QueryResult result = WorldDatabase.Query("SELECT locale, word, entry, half FROM pet_name_generation_locale");
QueryResult result = WorldDatabase.Query("SELECT Locale, Word, Entry, Half FROM pet_name_generation_locale");
if (!result)
{
@@ -474,9 +474,13 @@ void ObjectMgr::LoadPetNamesLocales()
bool half = fields[3].Get<bool>();
std::pair<uint32, LocaleConstant> pairkey = std::make_pair(entry, locale);
if (half)
{
_petHalfLocaleName1[pairkey].push_back(word);
}
else
{
_petHalfLocaleName0[pairkey].push_back(word);
}
++count;
} while (result->NextRow());