From 90159eca66b8a9daa377fb2a2454fd1e9ad4ac8d Mon Sep 17 00:00:00 2001 From: Andras Schaffer Date: Fri, 8 Sep 2023 08:37:23 +0200 Subject: [PATCH] Fix json Mission export Added missing initializers to make JSON Mission export work --- ExtLibs/Utilities/MissionFile.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ExtLibs/Utilities/MissionFile.cs b/ExtLibs/Utilities/MissionFile.cs index c7d5e47bba..9d8d7e16a5 100644 --- a/ExtLibs/Utilities/MissionFile.cs +++ b/ExtLibs/Utilities/MissionFile.cs @@ -243,8 +243,10 @@ public static RootObject ConvertFromLocationwps(List list, byte fram RootObject temp = new RootObject() { groundStation = "MissionPlanner", - version = 1 + version = 1, + mission = new Mission() }; + temp.mission.items = new List(); if (list.Count > 0) temp.mission.plannedHomePosition = @@ -282,4 +284,4 @@ public static RootObject ConvertFromLocationwps(List list, byte fram return temp; } } -} \ No newline at end of file +}