From d3c44de5d275caa204fd1980437d226b654aaac2 Mon Sep 17 00:00:00 2001 From: Gustas Date: Sun, 18 Feb 2024 10:47:21 +0200 Subject: [PATCH] Fix force rally point not setting building as primary --- OpenRA.Mods.Common/Traits/Buildings/RallyPoint.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Buildings/RallyPoint.cs b/OpenRA.Mods.Common/Traits/Buildings/RallyPoint.cs index cace318dae..2196545422 100644 --- a/OpenRA.Mods.Common/Traits/Buildings/RallyPoint.cs +++ b/OpenRA.Mods.Common/Traits/Buildings/RallyPoint.cs @@ -184,7 +184,7 @@ namespace OpenRA.Mods.Common.Traits { var closest = self.World.Selection.Actors .Where(a => a.TraitOrDefault()?.Info.ForceSetType == info.ForceSetType) - .ClosestToWithPathTo(self.World, target.CenterPosition); + .ClosestToIgnoringPath(target.CenterPosition); ForceSet = closest == self; }