Fix for dereferencing past end of mGuiModes.

deque
slothlife 11 years ago
parent f130f8535c
commit 281d3b4c95

@ -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)
{

Loading…
Cancel
Save