Sub: use new misison present method

This commit is contained in:
Iampete1 2025-01-14 16:46:18 +00:00 committed by Andrew Tridgell
parent 7dc91c3f32
commit 8d1a6f2bdb

View File

@ -8,7 +8,7 @@
* Code in this file implements the navigation commands
*/
bool ModeAuto::init(bool ignore_checks) {
if (!sub.position_ok() || sub.mission.num_commands() < 2) {
if (!sub.position_ok() || !sub.mission.present()) {
return false;
}