mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 19:35:42 +00:00
chore(DB/SQL): Correct file to comply with standards (#14953)
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user