Skip to content

Commit

Permalink
Display correct faction name in trade UI
Browse files Browse the repository at this point in the history
  • Loading branch information
SaberShip committed Sep 21, 2024
1 parent b2e5ef8 commit 812d832
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Client/Persistent/TradingUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ public override void DoWindowContents(Rect inRect)
selectedSession = session.SessionId;
}

Faction factionContext = session.NegotiatorFaction;
try
{
factionContext = FactionContext.Push(factionContext);
MpTradeSession.SetTradeSession(session);
drawingTrade = this;

Expand Down Expand Up @@ -124,6 +126,9 @@ public override void DoWindowContents(Rect inRect)
{
drawingTrade = null;
MpTradeSession.SetTradeSession(null);
if (factionContext != null) {
FactionContext.Pop();
}
}
}

Expand Down

0 comments on commit 812d832

Please sign in to comment.