Temp fix for SceneGraph crash
This commit is contained in:
parent
d432822608
commit
cfa07e9b3b
|
@ -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!")
|
||||
|
|
Loading…
Reference in New Issue