mission: start looking for first fw waypoint at the first mission index

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst 2022-03-07 10:47:34 +03:00
parent fc08c538da
commit 22b477f759

View File

@ -424,7 +424,7 @@ Mission::find_mission_land_start_and_first_fw_waypoint()
bool found_land_start_marker = false;
for (size_t i = 1; i < _mission.count; i++) {
for (size_t i = 0; i < _mission.count; i++) {
const ssize_t len = sizeof(missionitem);
missionitem_prev = missionitem; // store the last mission item before reading a new one