Physics2D/RigidBody2D: Fix potential crash if closestDistance is passed as nullptr

This commit is contained in:
Jérôme Leclercq 2018-11-16 17:42:59 +01:00
parent a3fd69a453
commit beed59b94c
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ namespace Nz
if (closestPoint)
*closestPoint = closest;
if (minDistance)
if (closestDistance)
*closestDistance = minDistance;
return true;