Skip to content

Commit

Permalink
Fix json Mission export
Browse files Browse the repository at this point in the history
Added missing initializers to make JSON Mission export work
  • Loading branch information
EosBandi authored and meee1 committed Sep 12, 2023
1 parent e5a2524 commit 90159ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ExtLibs/Utilities/MissionFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,10 @@ public static RootObject ConvertFromLocationwps(List<Locationwp> list, byte fram
RootObject temp = new RootObject()
{
groundStation = "MissionPlanner",
version = 1
version = 1,
mission = new Mission()
};
temp.mission.items = new List<Item>();

if (list.Count > 0)
temp.mission.plannedHomePosition =
Expand Down Expand Up @@ -282,4 +284,4 @@ public static RootObject ConvertFromLocationwps(List<Locationwp> list, byte fram
return temp;
}
}
}
}

0 comments on commit 90159ec

Please sign in to comment.