fix a null reference exception at map (tileset)
This commit is contained in:
@@ -49,8 +49,8 @@ namespace OpenRA.Mods.Common.Lint
|
|||||||
{
|
{
|
||||||
var image = renderInfo.GetImage(actorInfo.Value, sequenceProvider, race);
|
var image = renderInfo.GetImage(actorInfo.Value, sequenceProvider, race);
|
||||||
if (sequenceDefinitions.All(s => s.Key != image.ToLowerInvariant()) && !actorInfo.Value.Name.Contains("^"))
|
if (sequenceDefinitions.All(s => s.Key != image.ToLowerInvariant()) && !actorInfo.Value.Name.Contains("^"))
|
||||||
emitWarning("Sprite image {0} from actor {1} on tileset {2} using race {3} has no sequence definition."
|
emitWarning("Sprite image {0} from actor {1} using race {2} has no sequence definition."
|
||||||
.F(image, actorInfo.Value.Name, map.Tileset, race));
|
.F(image, actorInfo.Value.Name, race));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user