Skip to content

Commit

Permalink
AC_WPNav: fixes from lthall
Browse files Browse the repository at this point in the history
  • Loading branch information
lthall authored and rmackay9 committed Oct 1, 2024
1 parent 2b87133 commit f46cb6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AC_WPNav/AC_Circle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ void AC_Circle::get_closest_point_on_circle(Vector3f& result, float& dist_cm) co
dist_cm = vec.length();

// return center if radius is zero
if (_radius <= 0) {
if (!is_positive(_radius)) {
result = _center.tofloat();
return;
}
Expand Down

0 comments on commit f46cb6f

Please sign in to comment.