Change some Exts.MakeArray calls into Enumerable.Range.

Avoid creating some arrays where sequences will suffice.
This commit is contained in:
RoosterDragon
2014-11-29 02:20:42 +00:00
parent 6ebaebd1d1
commit dc2e44da36
4 changed files with 10 additions and 7 deletions

View File

@@ -84,7 +84,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
return item;
};
var options = Exts.MakeArray(teamCount + 1, i => i).ToList();
var options = Enumerable.Range(0, teamCount + 1);
dropdown.ShowDropDown("TEAM_DROPDOWN_TEMPLATE", 150, options, setupItem);
}