Fix error IDE0028: Collection initialization can be simplified.

This commit is contained in:
Vapre
2025-07-06 14:48:01 +02:00
committed by Gustas Kažukauskas
parent 18870cbb03
commit 2e3a30c9ca

View File

@@ -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<string> { s.Class }, eligiblePlayers);
var newSelection = SelectionUtils.SelectActorsOnScreen(World, worldRenderer, [s.Class], eligiblePlayers);
World.Selection.Combine(World, newSelection, true, false);
}