forked from mirror/openmw-tes3mp
Fix a crash when exit() already hides the window (Fixes #4148)
This commit is contained in:
parent
842a42ee66
commit
2805781542
1 changed files with 3 additions and 2 deletions
|
@ -1729,9 +1729,10 @@ namespace MWGui
|
|||
{
|
||||
if (!mCurrentModals.empty())
|
||||
{
|
||||
if (!mCurrentModals.back()->exit())
|
||||
WindowModal* window = mCurrentModals.back();
|
||||
if (!window->exit())
|
||||
return;
|
||||
mCurrentModals.back()->setVisible(false);
|
||||
window->setVisible(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue