mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 09:23:53 +00:00
Fix for dereferencing past end of mGuiModes.
This commit is contained in:
parent
f130f8535c
commit
281d3b4c95
1 changed files with 122 additions and 119 deletions
|
@ -442,6 +442,8 @@ namespace MWGui
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(mGuiModes.size() != 0)
|
||||||
|
{
|
||||||
GuiMode mode = mGuiModes.back();
|
GuiMode mode = mGuiModes.back();
|
||||||
|
|
||||||
switch(mode) {
|
switch(mode) {
|
||||||
|
@ -566,6 +568,7 @@ namespace MWGui
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void WindowManager::setValue (const std::string& id, const MWMechanics::AttributeValue& value)
|
void WindowManager::setValue (const std::string& id, const MWMechanics::AttributeValue& value)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue