Fix IDE0075

This commit is contained in:
RoosterDragon
2023-02-19 12:35:15 +00:00
committed by Pavel Penev
parent 3402031399
commit 99c289e063
3 changed files with 5 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ namespace OpenRA.Mods.Cnc.Effects
if (frozenLayer != null)
{
var frozenActor = frozenLayer.FromID(a.ActorID);
FrozenActorWithRenderables = frozenActor != null ? frozenActor.HasRenderables : false;
FrozenActorWithRenderables = frozenActor != null && frozenActor.HasRenderables;
}
}
}