diff --git a/src/MissionManager/PlanManager.cc b/src/MissionManager/PlanManager.cc index b6103ea68f9669f5c3bcc9f0f3f89b717c526b72..bd51e3702968787f70afd327e3fb088faa0ad6a2 100644 --- a/src/MissionManager/PlanManager.cc +++ b/src/MissionManager/PlanManager.cc @@ -712,7 +712,7 @@ QString PlanManager::_ackTypeToString(AckType_t ackType) QString PlanManager::_lastMissionReqestString(MAV_MISSION_RESULT result) { - if (_lastMissionRequest != -1 && _lastMissionRequest >= 0 && _lastMissionRequest < _writeMissionItems.count()) { + if (_lastMissionRequest >= 0 && _lastMissionRequest < _writeMissionItems.count()) { MissionItem* item = _writeMissionItems[_lastMissionRequest]; switch (result) {