1
0
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:
Evil Eye 2024-01-09 18:17:31 +00:00
commit d05f5e84ff

View File

@ -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();