From cead4fadf830cdb910ae0175c39cad339a835b8e Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 14 Jul 2025 10:47:02 -0600 Subject: I need to sit less --- src/world.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/world.c') diff --git a/src/world.c b/src/world.c index ff890bd..29da6a2 100644 --- a/src/world.c +++ b/src/world.c @@ -204,7 +204,7 @@ BVHNode buildWorldBVHTree(BVHNode* nodes, size_t nodesSize, } float distance = 0.0; - BoundingBox box = nodes[nodeIndex].box; + BoundingBox box = node.branches[0]->box; // Get distance and bounding box. for (int index = 0; index < branchIndex; ++index) -- cgit v1.2.3