Some logs n stuff

This commit is contained in:
vaxerski
2022-03-28 21:16:23 +02:00
parent b8e3bddcf1
commit 000b16585f
3 changed files with 9 additions and 1 deletions

View File

@@ -64,7 +64,11 @@ void SubsurfaceTree::destroySurfaceTree(SSurfaceTreeNode* pNode) {
}
}
RASSERT(exists, "Tried to delete a surfaceTreeNode that doesn't exist!");
if (!exists) {
Debug::log(ERR, "Tried to remove a SurfaceTreeNode that doesn't exist?? (Node %x)", pNode);
return;
}
for (auto& c : pNode->childSubsurfaces)
destroySubsurface(&c);