diff --git a/src/modules/navigator/mission_feasibility_checker.cpp b/src/modules/navigator/mission_feasibility_checker.cpp index 328e7e619333..5ca448e2e3a1 100644 --- a/src/modules/navigator/mission_feasibility_checker.cpp +++ b/src/modules/navigator/mission_feasibility_checker.cpp @@ -672,7 +672,7 @@ MissionFeasibilityChecker::checkDistancesBetweenWaypoints(const mission_s &missi double last_lat = (double)NAN; double last_lon = (double)NAN; - float last_alt = (double)NAN; + float last_alt = NAN; /* Go through all waypoints */ for (size_t i = 0; i < mission.count; i++) {