Fix CA1860

This commit is contained in:
RoosterDragon
2023-11-14 19:52:08 +00:00
committed by Gustas
parent 889de5e08a
commit f6614c1c58

View File

@@ -215,7 +215,7 @@ namespace OpenRA.Mods.Common.Traits
void CrushAction(Actor self, WPos position, Func<INotifyCrushed, Action<Actor, Actor, BitSet<CrushClass>>> 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)