mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 11:09:42 +00:00
Add missing assertion
This commit is contained in:
parent
eedb96863e
commit
d1a7dfee87
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue