diff --git a/OpenRa.Game/Game.cs b/OpenRa.Game/Game.cs index 4ee33460d3..702f24fab4 100644 --- a/OpenRa.Game/Game.cs +++ b/OpenRa.Game/Game.cs @@ -309,8 +309,8 @@ namespace OpenRa.Game public static IEnumerable SelectActorsInBox(float2 a, float2 b) { return FindUnits(a, b) - .Where( x => x.LegacyInfo.Selectable ) - .GroupBy(x => (x.Owner == LocalPlayer) ? x.LegacyInfo.SelectionPriority : 0) + .Where( x => x.traits.Contains() ) + .GroupBy(x => (x.Owner == LocalPlayer) ? x.Info.Traits.Get().Priority : 0) .OrderByDescending(g => g.Key) .Select( g => g.AsEnumerable() ) .DefaultIfEmpty( new Actor[] {} )