Fix spy ignoring the target's faction.

This commit is contained in:
Matthias Mailänder
2020-03-18 09:02:46 +01:00
committed by abcdefg30
parent dffa1e45f4
commit b4edec215e

View File

@@ -60,7 +60,7 @@ namespace OpenRA.Mods.Cnc.Traits.Render
.FirstOrDefault(t => t.EnabledByDefault);
if (renderSprites != null && infantryBody != null)
{
disguiseImage = renderSprites.GetImage(disguiseActor, self.World.Map.Rules.Sequences, disguisePlayer.InternalName);
disguiseImage = renderSprites.GetImage(disguiseActor, self.World.Map.Rules.Sequences, disguisePlayer.Faction.InternalName);
disguiseInfantryBody = infantryBody;
}
}