Tried to fix clearing children but failed miserably

This commit is contained in:
Vulpovile
2021-03-14 13:43:12 -07:00
parent 2a6d90ad66
commit 816a67a40b
6 changed files with 17 additions and 11 deletions

View File

@@ -140,6 +140,10 @@ void Instance::addChild(Instance* newChild)
void Instance::clearChildren()
{
for (size_t i = 0; i < children.size(); i++)
{
delete children.at(i);
}
children.clear();
}
void Instance::removeChild(Instance* oldChild)