diff --git a/Source/Contents/World/WorldSpatialTree.cpp b/Source/Contents/World/WorldSpatialTree.cpp index 905335643..e0d909eae 100644 --- a/Source/Contents/World/WorldSpatialTree.cpp +++ b/Source/Contents/World/WorldSpatialTree.cpp @@ -63,9 +63,9 @@ WorldSpatialTree::~WorldSpatialTree() { // OFFSET: 0x00AC80C0 // FUNCTION: fn_17664 void WorldSpatialTree::ClearChildren() { - for (WorldSpatialTree*& child : this->children) { - delete child; - child = nullptr; + for (int index = 0; index < 4; ++index) { + delete this->children[index]; + this->children[index] = nullptr; } }