tidy silly Enum.GetValues type nonsense

This commit is contained in:
Chris Forbes
2011-12-31 11:02:38 +13:00
parent 004c59d273
commit 809b716d0d
4 changed files with 5 additions and 4 deletions

View File

@@ -132,7 +132,7 @@ namespace OpenRA.Mods.RA.Widgets
if (actor.First == null)
return true;
var stances = (UnitStance[])Enum.GetValues(typeof(UnitStance));
var stances = Enum<UnitStance>.GetValues();
var nextStance = stances.Concat(stances).SkipWhile(s => s != actor.Second.predictedStance).Skip(1).First();