From f6614c1c5860271cf5eb13a8a177b78c3676ec62 Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Tue, 14 Nov 2023 19:52:08 +0000 Subject: [PATCH] Fix CA1860 --- OpenRA.Mods.Common/Traits/Husk.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Husk.cs b/OpenRA.Mods.Common/Traits/Husk.cs index 06c3112f18..f47773f282 100644 --- a/OpenRA.Mods.Common/Traits/Husk.cs +++ b/OpenRA.Mods.Common/Traits/Husk.cs @@ -215,7 +215,7 @@ namespace OpenRA.Mods.Common.Traits void CrushAction(Actor self, WPos position, Func>> action) { - if (info == null || !info.Crushes.Any()) + if (info == null || info.Crushes.IsEmpty) return; var crushables = self.World.ActorMap.GetActorsAt(self.World.Map.CellContaining(position)).Where(a => a != self)