diff --git a/BGS/Report.cs b/BGS/Report.cs index dcfe7ef..479b7a8 100644 --- a/BGS/Report.cs +++ b/BGS/Report.cs @@ -109,9 +109,9 @@ namespace EliteBGS.BGS { acceptedMissions[accepted.MissionID] = accepted; } else if (e.Is(Events.MissionFailed)) { var failed = e as MissionFailedEntry; - var accepted = acceptedMissions[failed.MissionID]; - if (accepted == null) { - OnLog?.Invoke("Mission failed that wasn't accepted, please adjust time frame."); + MissionAcceptedEntry accepted = null; + if (!acceptedMissions.TryGetValue(failed.MissionID, out accepted)) { + OnLog?.Invoke("Mission failed that wasn't accepted in the given time frame, please adjust start date."); continue; } entry = new MissionFailed(accepted) { Failed = failed, System = current_system };