1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 17:15:32 +00:00

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

This commit is contained in:
scrawl 2017-10-06 16:18:57 +00:00 committed by GitHub
parent 842a42ee66
commit 2805781542

View file

@ -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);
}
}