mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Don't assume there is a GUI mode in exitCurrentGuiMode (#8380)
This commit is contained in:
parent
2ca1850ea9
commit
e4ae0c9a95
1 changed files with 3 additions and 0 deletions
|
@ -729,6 +729,9 @@ namespace MWGui
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mGuiModes.empty())
|
||||||
|
return;
|
||||||
|
|
||||||
GuiModeState& state = mGuiModeStates[mGuiModes.back()];
|
GuiModeState& state = mGuiModeStates[mGuiModes.back()];
|
||||||
for (const auto& window : state.mWindows)
|
for (const auto& window : state.mWindows)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue