Physics2D/RigidBody2D: Fix potential crash if closestDistance is passed as nullptr
This commit is contained in:
@@ -156,7 +156,7 @@ namespace Nz
|
||||
if (closestPoint)
|
||||
*closestPoint = closest;
|
||||
|
||||
if (minDistance)
|
||||
if (closestDistance)
|
||||
*closestDistance = minDistance;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user