Fix IDE0029

This commit is contained in:
RoosterDragon
2023-02-19 10:24:14 +00:00
committed by Pavel Penev
parent 67ba3e55de
commit 8223161959
3 changed files with 5 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ namespace OpenRA.Mods.Common.Terrain
}
var frameCount = terrainInfo.EnableDepth && depthFrames == null ? allFrames.Length / 2 : allFrames.Length;
var indices = templateInfo.Frames != null ? templateInfo.Frames : Exts.MakeArray(t.Value.TilesCount, j => j);
var indices = templateInfo.Frames ?? Exts.MakeArray(t.Value.TilesCount, j => j);
var start = indices.Min();
var end = indices.Max();