Make sure actors are removed from control groups when captured
Fixes #5976.
This commit is contained in:
@@ -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<int, List<Actor>> controlGroups = new Cache<int, List<Actor>>(_ => new List<Actor>());
|
||||
|
||||
Reference in New Issue
Block a user