Fix a crash when exit() already hides the window (Fixes #4148)

new-script-api
scrawl 7 years ago committed by GitHub
parent 842a42ee66
commit 2805781542

@ -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…
Cancel
Save