From 852f0f790f60c8f7464d6f4e9c0b99997b70ab04 Mon Sep 17 00:00:00 2001 From: Taryn Hill Date: Fri, 12 Aug 2016 08:12:45 -0500 Subject: [PATCH] Fix CanBeViewedByPlayer query in HackyAI.GetVisibleActorsBelongingToPlayer --- OpenRA.Mods.Common/AI/HackyAI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/AI/HackyAI.cs b/OpenRA.Mods.Common/AI/HackyAI.cs index 5f24b6a348..5bc2c9d482 100644 --- a/OpenRA.Mods.Common/AI/HackyAI.cs +++ b/OpenRA.Mods.Common/AI/HackyAI.cs @@ -683,7 +683,7 @@ namespace OpenRA.Mods.Common.AI IEnumerable GetVisibleActorsBelongingToPlayer(Player owner) { foreach (var actor in GetActorsThatCanBeOrderedByPlayer(owner)) - if (actor.CanBeViewedByPlayer(owner)) + if (actor.CanBeViewedByPlayer(Player)) yield return actor; }