Fix exception, requiring usage of IComparable
This commit is contained in:
committed by
Chris Forbes
parent
986bf039fa
commit
72c6a428c9
@@ -211,7 +211,7 @@ namespace OpenRA.Mods.RA.AI
|
|||||||
.Where(q => p.WinState == WinState.Undefined && q.WinState == WinState.Undefined);
|
.Where(q => p.WinState == WinState.Undefined && q.WinState == WinState.Undefined);
|
||||||
|
|
||||||
var leastLikedEnemies = liveEnemies
|
var leastLikedEnemies = liveEnemies
|
||||||
.GroupBy(e => aggro[e])
|
.GroupBy(e => aggro[e].Aggro)
|
||||||
.OrderByDescending(g => g.Key)
|
.OrderByDescending(g => g.Key)
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user