1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-05-10 15:11:28 +00:00

Don't assume there is a GUI mode in exitCurrentGuiMode (#8380)

This commit is contained in:
Alexei Kotov 2025-03-16 09:06:01 +03:00
parent 2ca1850ea9
commit e4ae0c9a95

View file

@ -729,6 +729,9 @@ namespace MWGui
return;
}
if (mGuiModes.empty())
return;
GuiModeState& state = mGuiModeStates[mGuiModes.back()];
for (const auto& window : state.mWindows)
{