diff options
Diffstat (limited to 'src/server/scripts')
3 files changed, 4 insertions, 4 deletions
diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp index 1f2ebb020c9..01bd394f43c 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/boss_razorscale.cpp @@ -330,7 +330,7 @@ struct boss_razorscale : public BossAI std::function<void(Movement::MoveSplineInit&)> initializer = [](Movement::MoveSplineInit& init) { Movement::PointsArray path(std::size(RazorscalePath)); - std::transform(std::begin(RazorscalePath), std::end(RazorscalePath), path.begin(), [](Position pos) { return PositionToVector3(pos); }); + std::ranges::transform(RazorscalePath, path.begin(), PositionToVector3); init.MovebyPath(path, 0); init.SetCyclic(); init.SetFly(); diff --git a/src/server/scripts/Shadowlands/SepulcherOfTheFirstOnes/boss_anduin_wrynn.cpp b/src/server/scripts/Shadowlands/SepulcherOfTheFirstOnes/boss_anduin_wrynn.cpp index 4e0236a8963..fe5996968e4 100644 --- a/src/server/scripts/Shadowlands/SepulcherOfTheFirstOnes/boss_anduin_wrynn.cpp +++ b/src/server/scripts/Shadowlands/SepulcherOfTheFirstOnes/boss_anduin_wrynn.cpp @@ -2999,7 +2999,7 @@ struct at_anduin_wrynn_empowered_wicked_star : public at_anduin_wrynn_wicked_sta at->MovePositionToFirstCollision(destPos, 100.0f, angle); std::vector<G3D::Vector3> splinePoints; - splinePoints.push_back(PositionToVector3(at)); + splinePoints.push_back(PositionToVector3(at->GetPosition())); splinePoints.push_back(PositionToVector3(destPos)); at->InitSplines(splinePoints); diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp index ab79773e642..d214753fee3 100644 --- a/src/server/scripts/Spells/spell_priest.cpp +++ b/src/server/scripts/Spells/spell_priest.cpp @@ -1130,8 +1130,8 @@ struct areatrigger_pri_divine_star : AreaTriggerAI Movement::PointsArray returnSplinePoints; - returnSplinePoints.push_back(PositionToVector3(at)); - returnSplinePoints.push_back(PositionToVector3(caster)); + returnSplinePoints.push_back(PositionToVector3(at->GetPosition())); + returnSplinePoints.push_back(PositionToVector3(caster->GetPosition())); at->InitSplines(returnSplinePoints); |
