From 991e0a4c9a630fb5a69de77065f3fc0884f2d356 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Tue, 16 May 2023 19:22:05 +0200 Subject: [PATCH] DefaultSpriteSequence: Use .Count == 0 over !.Any() --- OpenRA.Mods.Common/Graphics/DefaultSpriteSequence.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Graphics/DefaultSpriteSequence.cs b/OpenRA.Mods.Common/Graphics/DefaultSpriteSequence.cs index 581a47a966..a21fa326c1 100644 --- a/OpenRA.Mods.Common/Graphics/DefaultSpriteSequence.cs +++ b/OpenRA.Mods.Common/Graphics/DefaultSpriteSequence.cs @@ -512,7 +512,7 @@ namespace OpenRA.Mods.Common.Graphics length = 2 * length - 2; } - if (!index.Any()) + if (index.Count == 0) throw new YamlException($"Sequence {image}.{Name} does not define any frames."); var minIndex = index.Min();