aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/EasternKingdoms
diff options
context:
space:
mode:
authorjoschiwald <joschiwald.trinity@gmail.com>2014-12-29 01:00:16 +0100
committerjoschiwald <joschiwald.trinity@gmail.com>2014-12-29 01:00:16 +0100
commit9ecc578cb187cc1ae0fd454883dab0cd058d3807 (patch)
tree6322b594c6ff6958de870dc5b4f0effee1f6e5c7 /src/server/scripts/EasternKingdoms
parent21360bb50c6a1390fbeb51c9c27bb0823ad0f252 (diff)
Core/Scripts: multiple changes
- fixed non pch build - fixed some warnings - fixed some coverity issues - some random things here and there
Diffstat (limited to 'src/server/scripts/EasternKingdoms')
-rw-r--r--src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
index 7249480108f..ce359603176 100644
--- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
+++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
@@ -934,20 +934,16 @@ public:
void FindMinions(Unit* owner)
{
- std::list<Creature*> MinionList;
+ std::list<TempSummon*> MinionList;
owner->GetAllMinionsByEntry(MinionList, NPC_GHOULS);
if (!MinionList.empty())
{
- for (std::list<Creature*>::const_iterator itr = MinionList.begin(); itr != MinionList.end(); ++itr)
+ for (TempSummon* summon : MinionList)
{
- if ((*itr)->GetOwner()->GetGUID() == me->GetOwner()->GetGUID())
- {
- if ((*itr)->IsInCombat() && (*itr)->getAttackerForHelper())
- {
- AttackStart((*itr)->getAttackerForHelper());
- }
- }
+ if (summon->GetOwnerGUID() == me->GetOwnerGUID())
+ if (summon->IsInCombat() && summon->getAttackerForHelper())
+ AttackStart(summon->getAttackerForHelper());
}
}
}