Skip to content

Commit

Permalink
xrGame: fix ability to get a negative money balance after paid service
Browse files Browse the repository at this point in the history
Why:
Money was checked when player press to a some question in dialog. If player by buy something at this moment, then your money state will be changed, but a condition for a service dialog wil not be rechecked.

How:
Just reset a talk dialog state to initial when player press to a trade button.

Issue: OpenXRay#1173
  • Loading branch information
Vlad2001MFS committed Jan 3, 2023
1 parent d811413 commit 7294e76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/xrGame/ui/UITalkWnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ void CUITalkWnd::SwitchToTrade()
{
UITalkDialogWnd->Hide();
StopSnd();
InitTalkDialog();

pGameSP->StartTrade(m_pOurInvOwner, m_pOthersInvOwner);
}
Expand Down

0 comments on commit 7294e76

Please sign in to comment.