From 336656e8f7a689d1fc9d0912c0e109b938dc9ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 27 Apr 2020 17:06:20 +0200 Subject: [PATCH] Remove superflous warning as null is a valid value here. --- OpenRA.Mods.Common/Lint/CheckSequences.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Lint/CheckSequences.cs b/OpenRA.Mods.Common/Lint/CheckSequences.cs index bac9aca49e..1296300d41 100644 --- a/OpenRA.Mods.Common/Lint/CheckSequences.cs +++ b/OpenRA.Mods.Common/Lint/CheckSequences.cs @@ -82,7 +82,12 @@ namespace OpenRA.Mods.Common.Lint { if (string.IsNullOrEmpty(imageOverride)) { - emitWarning("Custom sprite image of actor {0} is null.".F(actorInfo.Value.Name)); + foreach (var sequenceProvider in sequenceProviders) + { + var image = renderInfo.GetImage(actorInfo.Value, sequenceProvider, faction); + CheckDefinitions(image, sequenceReference, actorInfo, sequence, faction, field, traitInfo); + } + continue; }