From 2c88d9f162ca158e73bdb03c5ad46c8b6a451d2f Mon Sep 17 00:00:00 2001 From: treeston Date: Mon, 3 Jul 2017 17:33:34 +0200 Subject: Some more refactoring prep for combat/threat (#19930). (cherry picked from commit 2739a5c5f5d5a359eee4eef1a6486ddcaf24faaf) --- .../Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp | 2 +- .../CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/Outland') diff --git a/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp b/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp index c5e8f9fbba8..f7ece3c01e1 100644 --- a/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp +++ b/src/server/scripts/Outland/Auchindoun/ShadowLabyrinth/boss_blackheart_the_inciter.cpp @@ -109,7 +109,7 @@ class boss_blackheart_the_inciter : public CreatureScript { DoCast(me, SPELL_INCITE_CHAOS); - for (ThreatReference* ref : me->GetThreatManager().GetUnsortedThreatList()) + for (ThreatReference const* ref : me->GetThreatManager().GetUnsortedThreatList()) if (ref->GetVictim()->GetTypeId() == TYPEID_PLAYER) me->CastSpell(ref->GetVictim(), SPELL_INCITE_CHAOS_B, true); diff --git a/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp b/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp index 73b6596edfc..a3c4c9d74ce 100644 --- a/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp +++ b/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp @@ -527,7 +527,7 @@ public: ThreatManager const& mgr = me->GetThreatManager(); std::list TargetList; Unit* currentVictim = mgr.GetCurrentVictim(); - for (ThreatReference* ref : mgr.GetSortedThreatList()) + for (ThreatReference const* ref : mgr.GetSortedThreatList()) { if (Player* tempTarget = ref->GetVictim()->ToPlayer()) if (tempTarget != currentVictim && TargetList.size()<5) -- cgit v1.2.3