.Any(), .Count() -> .Count or .Length
This commit is contained in:
committed by
atlimit8
parent
6eb4fe8980
commit
79f321cb44
@@ -289,7 +289,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
{
|
||||
minelayers.Clear();
|
||||
minelayers.AddRange(selected.Where(s => !s.IsDead && s.Info.HasTraitInfo<MinelayerInfo>()));
|
||||
if (!minelayers.Any())
|
||||
if (minelayers.Count == 0)
|
||||
world.CancelInputMode();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user