diff --git a/BGS/Report.cs b/BGS/Report.cs index d9b30ca..b9a0cd0 100644 --- a/BGS/Report.cs +++ b/BGS/Report.cs @@ -145,12 +145,14 @@ namespace NonaBGS.BGS { LogEntry existing = null; - try { - existing = objective.LogEntries.Find(x => x.CompareTo(entry) == 0); - } catch (NotImplementedException) { - // Equivalent to not having found anything - existing = null; - } + existing = objective.LogEntries.Find(x => { + try { + return x.CompareTo(entry) == 0; + } catch (NotImplementedException) { + return false; + } + }); + if (collate && existing != null) { existing.Entries.Add(e); } else if (!collate || existing == null) {