Fix error IDE0028: Collection initialization can be simplified.
This commit is contained in:
committed by
Gustas Kažukauskas
parent
18870cbb03
commit
2e3a30c9ca
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user