Fix IDE0120

This commit is contained in:
RoosterDragon
2023-02-19 12:37:03 +00:00
committed by Pavel Penev
parent ede5412526
commit bf960b6eae
4 changed files with 7 additions and 4 deletions

View File

@@ -748,7 +748,7 @@ namespace OpenRA
public byte[] SavePreview()
{
var actorTypes = Rules.Actors.Values.Where(a => a.HasTraitInfo<IMapPreviewSignatureInfo>());
var actors = ActorDefinitions.Where(a => actorTypes.Where(ai => ai.Name == a.Value.Value).Any());
var actors = ActorDefinitions.Where(a => actorTypes.Any(ai => ai.Name == a.Value.Value));
var positions = new List<(MPos Position, Color Color)>();
foreach (var actor in actors)
{