From 0f363d4c0f76f9ae586d23deb0e51c2bf479cc4d Mon Sep 17 00:00:00 2001 From: Cr0s Date: Fri, 11 Jul 2014 05:44:45 +0400 Subject: [PATCH] Fixed typo in HackAI building placement code --- 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 740ee0954b..f062ef17ed 100644 --- a/OpenRA.Mods.RA/AI/HackyAI.cs +++ b/OpenRA.Mods.RA/AI/HackyAI.cs @@ -296,7 +296,7 @@ namespace OpenRA.Mods.RA.AI // Sort by distance to target if we have one if (center != target) - cells = cells.OrderBy(c => (center - target).LengthSquared); + cells = cells.OrderBy(c => (c - target).LengthSquared); else cells = cells.Shuffle(random);