From 72c6a428c94d1fe95bee662f8752b77a0d990d14 Mon Sep 17 00:00:00 2001 From: Raymond Martineau Date: Mon, 31 Oct 2011 13:35:46 -0400 Subject: [PATCH] Fix exception, requiring usage of IComparable --- OpenRA.Mods.RA/AI/HackyAI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/AI/HackyAI.cs b/OpenRA.Mods.RA/AI/HackyAI.cs index f9903cfb88..efb9920913 100644 --- a/OpenRA.Mods.RA/AI/HackyAI.cs +++ b/OpenRA.Mods.RA/AI/HackyAI.cs @@ -211,7 +211,7 @@ namespace OpenRA.Mods.RA.AI .Where(q => p.WinState == WinState.Undefined && q.WinState == WinState.Undefined); var leastLikedEnemies = liveEnemies - .GroupBy(e => aggro[e]) + .GroupBy(e => aggro[e].Aggro) .OrderByDescending(g => g.Key) .FirstOrDefault();