mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/BattlePets: Fix field index in BattlePetMgr::LoadFromDB
This commit is contained in:
@@ -236,11 +236,11 @@ void BattlePetMgr::LoadFromDB(PreparedQueryResult pets, PreparedQueryResult slot
|
||||
pet.PacketInfo.Name = fields[9].GetString();
|
||||
pet.PacketInfo.CreatureID = speciesEntry->CreatureID;
|
||||
|
||||
if (!fields[9].IsNull())
|
||||
if (!fields[10].IsNull())
|
||||
{
|
||||
pet.DeclinedName.reset(new DeclinedName);
|
||||
for (uint8 i = 0; i < MAX_DECLINED_NAME_CASES; ++i)
|
||||
pet.DeclinedName->name[i] = fields[9 + i].GetString();
|
||||
pet.DeclinedName->name[i] = fields[10 + i].GetString();
|
||||
}
|
||||
|
||||
pet.SaveInfo = BATTLE_PET_UNCHANGED;
|
||||
|
||||
Reference in New Issue
Block a user