From ff90a7559df4f5ffa599d3f1fc32b97de971e602 Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Sun, 20 Jul 2014 02:49:58 +0200 Subject: [PATCH] Make sure actors are removed from control groups when captured Fixes #5976. --- OpenRA.Game/Selection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Selection.cs b/OpenRA.Game/Selection.cs index 7dfc6c8600..fd08eb1e24 100644 --- a/OpenRA.Game/Selection.cs +++ b/OpenRA.Game/Selection.cs @@ -65,7 +65,7 @@ namespace OpenRA foreach (var cg in controlGroups.Values) // note: NOT `!a.IsInWorld`, since that would remove things that are in transports. - cg.RemoveAll(a => a.Destroyed); + cg.RemoveAll(a => a.Destroyed || a.Owner != world.LocalPlayer); } Cache> controlGroups = new Cache>(_ => new List());