AP_Mission: remove redundant check

get_next_do_command does this check
This commit is contained in:
Peter Barker 2018-08-28 12:08:09 +10:00 committed by Peter Barker
parent f5d50935fd
commit 3c3cda81e9
1 changed files with 0 additions and 7 deletions

View File

@ -1552,13 +1552,6 @@ void AP_Mission::advance_current_do_cmd()
cmd_index = _do_cmd.index + 1;
}
// check if we've reached end of mission
if (cmd_index >= (unsigned)_cmd_total) {
// set flag to stop unnecessarily searching for do commands
_flags.do_cmd_all_done = true;
return;
}
// find next do command
Mission_Command cmd;
if (get_next_do_cmd(cmd_index, cmd)) {