Skip to content

Commit

Permalink
Make GetUISummary_UnitStatusIcons() skip empty status icons (#1122)
Browse files Browse the repository at this point in the history
* Issue #1120 - make GetUISummary_UnitStatusIcons() skip empty status icons.

* Added HL-Docs.
  • Loading branch information
Iridar authored Feb 27, 2022
1 parent 3646333 commit b4a3f68
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14102,7 +14102,12 @@ simulated function array<string> GetUISummary_UnitStatusIcons()
{
EffectState = XComGameState_Effect(History.GetGameStateForObjectID(EffectRef.ObjectID));
Persist = EffectState.GetX2Effect();
if( Persist.bDisplayInUI && Persist.IsEffectCurrentlyRelevant(EffectState, self) )

/// HL-Docs: ref:Bugfixes; issue:1120
/// Add the effect's status icon only if it's not empty.
if (Persist.bDisplayInUI &&
Persist.StatusIcon != "" && // Single line for Issue #1120
Persist.IsEffectCurrentlyRelevant(EffectState, self))
{
List.AddItem(Persist.StatusIcon);
}
Expand Down

0 comments on commit b4a3f68

Please sign in to comment.