Skip to content

Commit e4ae0c9

Browse files
committed
Don't assume there is a GUI mode in exitCurrentGuiMode (#8380)
1 parent 2ca1850 commit e4ae0c9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/openmw/mwgui/windowmanagerimp.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,9 @@ namespace MWGui
729729
return;
730730
}
731731

732+
if (mGuiModes.empty())
733+
return;
734+
732735
GuiModeState& state = mGuiModeStates[mGuiModes.back()];
733736
for (const auto& window : state.mWindows)
734737
{

0 commit comments

Comments
 (0)