From 99287c4ce406bbe843baf2baa0de95e0969f66c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Wed, 2 May 2018 12:06:05 -0300 Subject: [PATCH] PlanManager: Simplifies if logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/MissionManager/PlanManager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MissionManager/PlanManager.cc b/src/MissionManager/PlanManager.cc index b6103ea68..bd51e3702 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) { -- 2.22.0