mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 18:32:36 +00:00
Merge branch 'missing_assert' into 'master'
Add missing assertion See merge request OpenMW/openmw!3751
This commit is contained in:
commit
d05f5e84ff
@ -280,6 +280,7 @@ namespace LuaUi
|
||||
auto children = parent->children();
|
||||
auto it = std::find(children.begin(), children.end(), mRoot);
|
||||
mRoot = createWidget(layout(), 0);
|
||||
assert(it != children.end());
|
||||
*it = mRoot;
|
||||
parent->setChildren(children);
|
||||
mRoot->updateCoord();
|
||||
|
Loading…
x
Reference in New Issue
Block a user