Archived
1
0

fix finding an entry for collating

This commit is contained in:
Florian Stinglmayr 2021-09-30 13:32:31 +02:00
parent dd4cc8ba5f
commit c8e985cb39

View File

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