diff --git a/src/Navaids/FlightPlan.cxx b/src/Navaids/FlightPlan.cxx index 6e2658da2..4ab75d78f 100644 --- a/src/Navaids/FlightPlan.cxx +++ b/src/Navaids/FlightPlan.cxx @@ -225,6 +225,12 @@ void FlightPlan::deleteIndex(int aIndex) void FlightPlan::clear() { + // some badly behaved CDU implementations call clear on a Nasal timer + // during startup. + if (_legs.empty() && (_currentIndex < 0)) { + return; + } + lockDelegate(); _waypointsChanged = true; _currentWaypointChanged = true;