Browse Source

Fix trader's selected signal

pull/8/head
Anton Tarasenko 2 years ago
parent
commit
ca30935c15
  1. 4
      sources/Gameplay/KF1Frontend/Trading/KF1_TradingComponent.uc

4
sources/Gameplay/KF1Frontend/Trading/KF1_TradingComponent.uc

@ -152,12 +152,12 @@ public function SelectTrader(ETrader newSelection)
if (newSelection != none) if (newSelection != none)
{ {
lastSelectedTrader = ETrader(newSelection.Copy()); lastSelectedTrader = ETrader(newSelection.Copy());
traderChanged = lastSelectedTrader.SameAs(oldSelection); traderChanged = !lastSelectedTrader.SameAs(oldSelection);
} }
else else
{ {
lastSelectedTrader = none; lastSelectedTrader = none;
traderChanged = (oldSelection == none); traderChanged = (oldSelection != none);
} }
if (traderChanged) { if (traderChanged) {
onTraderSelectSignal.Emit(oldSelection, newSelection); onTraderSelectSignal.Emit(oldSelection, newSelection);

Loading…
Cancel
Save