From ca30935c159a06b07c0d2c51fd7a3bda81cb7d0c Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Wed, 8 Jun 2022 02:56:37 +0700 Subject: [PATCH] Fix trader's selected signal --- sources/Gameplay/KF1Frontend/Trading/KF1_TradingComponent.uc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/Gameplay/KF1Frontend/Trading/KF1_TradingComponent.uc b/sources/Gameplay/KF1Frontend/Trading/KF1_TradingComponent.uc index f1a54de..a3ec4d0 100644 --- a/sources/Gameplay/KF1Frontend/Trading/KF1_TradingComponent.uc +++ b/sources/Gameplay/KF1Frontend/Trading/KF1_TradingComponent.uc @@ -152,12 +152,12 @@ public function SelectTrader(ETrader newSelection) if (newSelection != none) { lastSelectedTrader = ETrader(newSelection.Copy()); - traderChanged = lastSelectedTrader.SameAs(oldSelection); + traderChanged = !lastSelectedTrader.SameAs(oldSelection); } else { lastSelectedTrader = none; - traderChanged = (oldSelection == none); + traderChanged = (oldSelection != none); } if (traderChanged) { onTraderSelectSignal.Emit(oldSelection, newSelection);