Skip to content
Snippets Groups Projects
Commit 212205d6 authored by Tom Fischer's avatar Tom Fischer
Browse files

[GL] ~QuadTree: It is safe to delete nullptr.

parent b8f75a39
No related branches found
No related tags found
No related merge requests found
......@@ -71,9 +71,9 @@ public:
*/
~QuadTree()
{
if (_is_leaf)
for (std::size_t k(0); k < 4; k++)
delete _childs[k];
for (std::size_t k(0); k < 4; k++) {
delete _childs[k];
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment