crash fix follow-up
(cherry picked from commit 6939f4eb7b023a6b2f8940ab12484523e1904860)
This commit is contained in:
@@ -2990,7 +2990,7 @@ void WorldObject::GetNearPoint2D(WorldObject const* searcher, float &x, float &y
|
||||
|
||||
float hoverDelta = myHover - searcherHover;
|
||||
if (hoverDelta != 0.0f)
|
||||
effectiveReach = std::sqrt(effectiveReach * effectiveReach - hoverDelta * hoverDelta);
|
||||
effectiveReach = std::sqrt(std::max(effectiveReach * effectiveReach - hoverDelta * hoverDelta, 0.0f));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user