.Any(), .Count() -> .Count or .Length
This commit is contained in:
committed by
atlimit8
parent
6eb4fe8980
commit
79f321cb44
@@ -53,7 +53,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
public WithAmmoPipsDecoration(Actor self, WithAmmoPipsDecorationInfo info)
|
||||
: base(self, info)
|
||||
{
|
||||
if (info.AmmoPools.Any())
|
||||
if (info.AmmoPools.Length > 0)
|
||||
ammo = self.TraitsImplementing<AmmoPool>()
|
||||
.Where(ap => info.AmmoPools.Contains(ap.Info.Name))
|
||||
.ToArray();
|
||||
|
||||
Reference in New Issue
Block a user