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