Temp fix for SceneGraph crash

This commit is contained in:
Kah Wei 2022-10-02 01:58:24 +08:00
parent d432822608
commit cfa07e9b3b
1 changed files with 8 additions and 3 deletions

View File

@ -90,10 +90,15 @@ namespace SHADE
#endif
// Go through the map and release all the nodes
for (auto* node : entityNodeMap | std::views::values)
ReleaseNode(node);
for (auto*& node : entityNodeMap | std::views::values)
{
delete node;
node = nullptr;
}
delete root;
entityNodeMap.clear();
//delete root;
#ifdef _DEBUG
SHLOG_INFO("Scene Graph Destroyed Successfully!")