forked from mirror/openmw-tes3mp
[Client] Add temporary fix for crashes caused by custom GUI elements
This commit is contained in:
parent
0cc86c04d1
commit
4caf7ca30a
1 changed files with 16 additions and 1 deletions
|
@ -908,8 +908,23 @@ namespace MWGui
|
|||
window->onFrame(frameDuration);
|
||||
}
|
||||
|
||||
/*
|
||||
Start of tes3mp change (major)
|
||||
|
||||
Custom GUI elements added by TES3MP often cause a crash here when their
|
||||
mMainWidget becomes null, so a temporary fix has been added until a
|
||||
more appropriate solution is researched
|
||||
*/
|
||||
if (!mCurrentModals.empty())
|
||||
mCurrentModals.back()->onFrame(frameDuration);
|
||||
{
|
||||
if (mCurrentModals.back()->mMainWidget != 0)
|
||||
mCurrentModals.back()->onFrame(frameDuration);
|
||||
else
|
||||
mCurrentModals.pop_back();
|
||||
}
|
||||
/*
|
||||
End of tes3mp change (major)
|
||||
*/
|
||||
|
||||
mKeyboardNavigation->onFrame();
|
||||
|
||||
|
|
Loading…
Reference in a new issue