Skip to content

Commit

Permalink
Fix Army Spectator tab not using FactionImages.
Browse files Browse the repository at this point in the history
  • Loading branch information
MustaphaTR authored and Mailaender committed Apr 15, 2022
1 parent ac0969d commit 30f14dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Traits/Player/PlayerStatistics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public ArmyUnit(ActorInfo actorInfo, Player owner)

if (BuildableInfo != null && rsi != null)
{
var image = rsi.GetImage(actorInfo, owner.Faction.Name);
var image = rsi.GetImage(actorInfo, owner.Faction.InternalName);
Icon = new Animation(owner.World, image);
Icon.Play(BuildableInfo.Icon);
IconPalette = BuildableInfo.IconPalette;
Expand Down

0 comments on commit 30f14dc

Please sign in to comment.