Silence warnings about multiple enumerations in AIUtils

This method only every receives a list as parameter
This commit is contained in:
abcdefg30
2023-10-30 16:15:37 +01:00
committed by Gustas
parent 57cef527ba
commit 6fb7bb1c08

View File

@@ -74,7 +74,7 @@ namespace OpenRA.Mods.Common
TextNotificationsManager.Debug(format, args);
}
public static IEnumerable<Order> ClearBlockersOrders(IEnumerable<CPos> tiles, Player owner, Actor ignoreActor = null)
public static IEnumerable<Order> ClearBlockersOrders(List<CPos> tiles, Player owner, Actor ignoreActor = null)
{
var world = owner.World;
var adjacentTiles = Util.ExpandFootprint(tiles, true).Except(tiles)