From 3f1816d4076a9dfc65adae3109bf504e35f21003 Mon Sep 17 00:00:00 2001 From: Meji Date: Fri, 13 Jan 2023 03:04:03 +0100 Subject: Core/Creatures: Fixed typo in loading creature addon --- src/server/game/Globals/ObjectMgr.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index f5d5df6d2d9..1169ab991a3 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -715,7 +715,7 @@ void ObjectMgr::LoadCreatureTemplateAddons() { uint32 oldMSTime = getMSTime(); - // 0 1 2 3 4 5 6 7 8 9 10 11 12 + // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 QueryResult result = WorldDatabase.Query("SELECT entry, path_id, mount, StandState, AnimTier, VisFlags, SheathState, PvPFlags, emote, aiAnimKit, movementAnimKit, meleeAnimKit, visibilityDistanceType, auras FROM creature_template_addon"); if (!result) @@ -752,7 +752,7 @@ void ObjectMgr::LoadCreatureTemplateAddons() creatureAddon.meleeAnimKit = fields[11].GetUInt16(); creatureAddon.visibilityDistanceType = VisibilityDistanceType(fields[12].GetUInt8()); - for (std::string_view aura : Trinity::Tokenize(fields[10].GetStringView(), ' ', false)) + for (std::string_view aura : Trinity::Tokenize(fields[13].GetStringView(), ' ', false)) { SpellInfo const* spellInfo = nullptr; if (Optional spellId = Trinity::StringTo(aura)) @@ -1300,7 +1300,7 @@ void ObjectMgr::LoadCreatureAddons() { uint32 oldMSTime = getMSTime(); - // 0 1 2 3 4 5 6 7 8 9 10 11 12 + // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 QueryResult result = WorldDatabase.Query("SELECT guid, path_id, mount, StandState, AnimTier, VisFlags, SheathState, PvPFlags, emote, aiAnimKit, movementAnimKit, meleeAnimKit, visibilityDistanceType, auras FROM creature_addon"); if (!result) @@ -1344,7 +1344,7 @@ void ObjectMgr::LoadCreatureAddons() creatureAddon.meleeAnimKit = fields[11].GetUInt16(); creatureAddon.visibilityDistanceType = VisibilityDistanceType(fields[12].GetUInt8()); - for (std::string_view aura : Trinity::Tokenize(fields[10].GetStringView(), ' ', false)) + for (std::string_view aura : Trinity::Tokenize(fields[13].GetStringView(), ' ', false)) { SpellInfo const* spellInfo = nullptr; if (Optional spellId = Trinity::StringTo(aura)) -- cgit v1.2.3