mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-19 15:09:43 +00:00
Merge branch 'erasechildren' into 'master'
Use std::erase instead of using std::remove without erasing See merge request OpenMW/openmw!3627
This commit is contained in:
commit
ee4993b462
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ namespace LuaUi
|
|||
if (parent)
|
||||
{
|
||||
auto children = parent->children();
|
||||
std::remove(children.begin(), children.end(), root);
|
||||
std::erase(children, root);
|
||||
parent->setChildren(children);
|
||||
root->widget()->detachFromWidget();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue