mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 05:11:55 +01:00
Core/Misc: Make Clang 10 happier
This commit is contained in:
@@ -266,7 +266,7 @@ public:
|
||||
me->SetWalk(false);
|
||||
events.ScheduleEvent(EVENT_ADD_THREAT, Milliseconds(100));
|
||||
|
||||
for (ObjectGuid const spawnerGuid : _spawners)
|
||||
for (ObjectGuid spawnerGuid : _spawners)
|
||||
if (Creature* spawner = ObjectAccessor::GetCreature(*me, spawnerGuid))
|
||||
spawner->AI()->DoAction(ACTION_STOP_SPAWNING);
|
||||
}
|
||||
@@ -279,7 +279,7 @@ public:
|
||||
if (Creature* akama = instance->GetCreature(DATA_AKAMA_SHADE))
|
||||
akama->AI()->DoAction(ACTION_SHADE_OF_AKAMA_DEAD);
|
||||
|
||||
for (ObjectGuid const spawnerGuid : _spawners)
|
||||
for (ObjectGuid spawnerGuid : _spawners)
|
||||
if (Creature* spawner = ObjectAccessor::GetCreature(*me, spawnerGuid))
|
||||
spawner->AI()->DoAction(ACTION_DESPAWN_ALL_SPAWNS);
|
||||
|
||||
@@ -321,11 +321,11 @@ public:
|
||||
}
|
||||
case EVENT_START_CHANNELERS_AND_SPAWNERS:
|
||||
{
|
||||
for (ObjectGuid const summonGuid : summons)
|
||||
for (ObjectGuid summonGuid : summons)
|
||||
if (Creature* channeler = ObjectAccessor::GetCreature(*me, summonGuid))
|
||||
channeler->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
|
||||
|
||||
for (ObjectGuid const spawnerGuid : _spawners)
|
||||
for (ObjectGuid spawnerGuid : _spawners)
|
||||
if (Creature* spawner = ObjectAccessor::GetCreature(*me, spawnerGuid))
|
||||
spawner->AI()->DoAction(ACTION_START_SPAWNING);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user