mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 07:41:33 +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 children = parent->children();
|
||||||
auto it = std::find(children.begin(), children.end(), mRoot);
|
auto it = std::find(children.begin(), children.end(), mRoot);
|
||||||
mRoot = createWidget(layout(), 0);
|
mRoot = createWidget(layout(), 0);
|
||||||
|
assert(it != children.end());
|
||||||
*it = mRoot;
|
*it = mRoot;
|
||||||
parent->setChildren(children);
|
parent->setChildren(children);
|
||||||
mRoot->updateCoord();
|
mRoot->updateCoord();
|
||||||
|
|
Loading…
Reference in a new issue