FIX: fixed removing child

This commit is contained in:
Dominik Meyer 2023-11-14 11:22:16 +01:00
parent d178ccb9a3
commit 9721ab5288
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97
1 changed files with 1 additions and 2 deletions

View File

@ -114,9 +114,8 @@ void Tree::BaseNode::deleteChild(const std::shared_ptr<Tree::BaseNode> &c)
if (it!=children.end())
{
children.erase(it);
it = children.erase(it);
}
it = children.erase(it);
c->setParent(nullptr);
}