Skip to content

Commit f22f495

Browse files
ForserXXottab-DUTY
authored andcommitted
CUIDialogWnd::HideDialog(): don't crash if dialog already hidden
1 parent 3c95c3f commit f22f495

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xrGame/ui/UIDialogWnd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ void CUIDialogWnd::ShowDialog(bool bDoHideIndicators)
5757

5858
void CUIDialogWnd::HideDialog()
5959
{
60-
R_ASSERT2(IsShown(), "dialog already hidden");
61-
GetHolder()->StopDialog(this);
60+
if (IsShown())
61+
GetHolder()->StopDialog(this);
6262
}

0 commit comments

Comments
 (0)