diff --git a/EliteBGS/LogGenerator/MissionFormat.cs b/EliteBGS/LogGenerator/MissionFormat.cs index b17aad3..e018aea 100644 --- a/EliteBGS/LogGenerator/MissionFormat.cs +++ b/EliteBGS/LogGenerator/MissionFormat.cs @@ -13,8 +13,10 @@ public class MissionFormat : LogFormatter { int total_influence = 0; var missions = objective.EnabledOfType(); + var support = objective.EnabledOfType(); - if (missions == null || missions.Count == 0) { + if ((missions == null || missions.Count == 0) && + (support == null || support.Count == 0)) { return ""; } @@ -56,7 +58,6 @@ public class MissionFormat : LogFormatter { output.Append("\n\n"); - var support = objective.EnabledOfType(); foreach (InfluenceSupport inf in support) { output.Append(inf.ToString()); output.Append("\n");