From 047117fe9fe31514c9f49340d4ebecee038c547e Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 16 Oct 2021 12:21:04 +0200 Subject: Core/BattlePets: Fix field index in BattlePetMgr::LoadFromDB --- src/server/game/BattlePets/BattlePetMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/game/BattlePets/BattlePetMgr.cpp b/src/server/game/BattlePets/BattlePetMgr.cpp index a5a0f3685f6..5af547f1797 100644 --- a/src/server/game/BattlePets/BattlePetMgr.cpp +++ b/src/server/game/BattlePets/BattlePetMgr.cpp @@ -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; -- cgit v1.2.3