diff --git a/src/Core/CRayCollisionTester.cpp b/src/Core/CRayCollisionTester.cpp index fb473a9b..84e3940e 100644 --- a/src/Core/CRayCollisionTester.cpp +++ b/src/Core/CRayCollisionTester.cpp @@ -59,7 +59,7 @@ SRayIntersection CRayCollisionTester::TestNodes(const SViewInfo& ViewInfo) if (MidResult.Hit) { - if ((!Result.Hit) || (MidResult.Distance < Result.Distance)) + if ((!Result.Hit) || (MidResult.Distance <= Result.Distance)) Result = MidResult; } }