Skip to content

Commit bad0b82

Browse files
committed
fix
1 parent d05b9a4 commit bad0b82

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/geode/model/helpers/ray_tracing.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -302,22 +302,22 @@ namespace geode
302302
{
303303
{
304304
std::shared_lock read_lock{ mutex_ };
305-
const auto it = aabb_trees_.find( surface.id() );
306-
if( it != aabb_trees_.end() )
305+
const auto tree_it = aabb_trees_.find( surface.id() );
306+
if( tree_it != aabb_trees_.end() )
307307
{
308-
return *it->second;
308+
return *tree_it->second;
309309
}
310310
}
311311
std::lock_guard write_lock{ mutex_ };
312-
const auto it = aabb_trees_.find( surface.id() );
313-
if( it != aabb_trees_.end() )
312+
const auto tree_it = aabb_trees_.find( surface.id() );
313+
if( tree_it != aabb_trees_.end() )
314314
{
315-
return *it->second;
315+
return *tree_it->second;
316316
}
317-
const auto [it, inserted] = aabb_trees_.emplace(
317+
const auto [new_tree_it, inserted] = aabb_trees_.emplace(
318318
surface.id(), std::make_unique< AABBTree3D >(
319319
create_aabb_tree( surface.mesh() ) ) );
320-
return *it->second;
320+
return *new_tree_it->second;
321321
}
322322

323323
private:

0 commit comments

Comments
 (0)