diff --git a/OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs b/OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs index 71e7c69ad7..ea41f5ff8a 100644 --- a/OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs +++ b/OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs @@ -131,7 +131,7 @@ namespace OpenRA.Mods.Common.Widgets if (s != null) { // Select actors on the screen that have the same selection class as the actor under the mouse cursor - var newSelection = SelectionUtils.SelectActorsOnScreen(World, worldRenderer, new HashSet { s.Class }, eligiblePlayers); + var newSelection = SelectionUtils.SelectActorsOnScreen(World, worldRenderer, [s.Class], eligiblePlayers); World.Selection.Combine(World, newSelection, true, false); }