Fixed models crashing game

This commit is contained in:
Vulpovile
2022-10-02 17:17:40 -07:00
parent df77572fe7
commit c27aa6a114
4 changed files with 21 additions and 11 deletions

View File

@@ -34,13 +34,11 @@ void GroupInstance::PropUpdate(LPPROPGRIDITEM &pItem)
std::vector<Instance *> GroupInstance::unGroup()
{
std::vector<Instance *> child;
while(children.size() > 0)
{
child.push_back(children[0]);
children[0]->setParent(parent);
}
return child;
return std::vector<Instance *>();
}
void GroupInstance::render(RenderDevice * rd)