1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

Fix for dereferencing past end of mGuiModes.

This commit is contained in:
slothlife 2014-06-02 17:21:13 -05:00
parent f130f8535c
commit 281d3b4c95

View file

@ -442,6 +442,8 @@ namespace MWGui
return;
}
if(mGuiModes.size() != 0)
{
GuiMode mode = mGuiModes.back();
switch(mode) {
@ -566,6 +568,7 @@ namespace MWGui
break;
}
}
}
void WindowManager::setValue (const std::string& id, const MWMechanics::AttributeValue& value)
{