DefaultSpriteSequence: Use .Count == 0 over !.Any()
This commit is contained in:
@@ -512,7 +512,7 @@ namespace OpenRA.Mods.Common.Graphics
|
|||||||
length = 2 * length - 2;
|
length = 2 * length - 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!index.Any())
|
if (index.Count == 0)
|
||||||
throw new YamlException($"Sequence {image}.{Name} does not define any frames.");
|
throw new YamlException($"Sequence {image}.{Name} does not define any frames.");
|
||||||
|
|
||||||
var minIndex = index.Min();
|
var minIndex = index.Min();
|
||||||
|
|||||||
Reference in New Issue
Block a user