From 2e3a30c9ca0e12df4255dbaefdf0b01462604ed0 Mon Sep 17 00:00:00 2001 From: Vapre Date: Sun, 6 Jul 2025 14:48:01 +0200 Subject: [PATCH] Fix error IDE0028: Collection initialization can be simplified. --- OpenRA.Mods.Common/Widgets/WorldInteractionControllerWidget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }