Unverified Commit 797bc148 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #7814 from Aeronavics/ArduPilot_Takeoff_must_be_first_mission_command_7799

Rename i in VisualItemIndex
parents 425263e7 0874516f
......@@ -412,8 +412,8 @@ int MissionController::insertComplexMissionItem(QString itemName, QGeoCoordinate
// If the ComplexMissionItem is inserted first, add a TakeOff SimpleMissionItem
if (_visualItems->count() == 1 && (_controllerVehicle->fixedWing() || _controllerVehicle->vtol() || _controllerVehicle->multiRotor())) {
insertSimpleMissionItem(mapCenterCoordinate, i);
i++;
insertSimpleMissionItem(mapCenterCoordinate, visualItemIndex);
visualItemIndex++;
}
int sequenceNumber = _nextSequenceNumber();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment