Skip to content

Commit

Permalink
code analyzer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CarnifexOptimus committed Dec 27, 2024
1 parent 1a7ba89 commit c87849e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public override void OnEventCast(Actor caster, ActorCastEvent spell)
private void PopAOE()
{
++NumCasts;
if (_aoes.Count > 0)
if (_aoes.Count != 0)
_aoes.RemoveAt(0);
}

Expand All @@ -115,7 +115,7 @@ private IEnumerable<WPos> SafeSpots()
{
foreach (var a in safespots.Allowed(default))
{
var mid = ((a.Item1.Rad + a.Item2.Rad) * 0.5f).Radians();
var mid = ((a.min.Rad + a.max.Rad) * 0.5f).Radians();
yield return safespots.Center + safespots.Radius * mid.ToDirection();
}
}
Expand Down

0 comments on commit c87849e

Please sign in to comment.