fix(CI): revert sleep + fix shadowing variable issue (#9106)

This commit is contained in:
Francesco Borzì
2021-11-10 10:18:40 +01:00
committed by GitHub
parent 5223f040fb
commit 1cd8c43447
2 changed files with 6 additions and 6 deletions
-4
View File
@@ -6,10 +6,6 @@ jobs:
triage: triage:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
# This delay is necessary to correctly trigger builds on label application
- name: Sleep for 30 seconds
run: sleep 30s
shell: bash
- uses: actions/labeler@v3 - uses: actions/labeler@v3
with: with:
repo-token: ${{ secrets.AC_GITHUB_TOKEN }} repo-token: ${{ secrets.AC_GITHUB_TOKEN }}
+6 -2
View File
@@ -1246,10 +1246,14 @@ void Spell::SelectImplicitConeTargets(SpellEffIndex effIndex, SpellImplicitTarge
for (std::list<WorldObject*>::iterator itr = targets.begin(); itr != targets.end(); ++itr) for (std::list<WorldObject*>::iterator itr = targets.begin(); itr != targets.end(); ++itr)
{ {
if (Unit* unitTarget = (*itr)->ToUnit()) if (Unit* unit = (*itr)->ToUnit())
AddUnitTarget(unitTarget, effMask, false); {
AddUnitTarget(unit, effMask, false);
}
else if (GameObject* gObjTarget = (*itr)->ToGameObject()) else if (GameObject* gObjTarget = (*itr)->ToGameObject())
{
AddGOTarget(gObjTarget, effMask); AddGOTarget(gObjTarget, effMask);
}
} }
} }
} }