diff --git a/libraries/voxels/src/VoxelTree.cpp b/libraries/voxels/src/VoxelTree.cpp index 3b39adcfeb..264d2c6a3a 100644 --- a/libraries/voxels/src/VoxelTree.cpp +++ b/libraries/voxels/src/VoxelTree.cpp @@ -558,8 +558,7 @@ public: bool findRayOperation(VoxelNode* node, void* extraData) { RayArgs* args = static_cast(extraData); - AABox box; - node->getAABox(box); + AABox box = node->getAABox(); float distance; if (!box.findRayIntersection(args->origin, args->direction, distance)) { return false;