fix finding an entry for collating
This commit is contained in:
parent
dd4cc8ba5f
commit
c8e985cb39
@ -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) {
|
||||
|
Reference in New Issue
Block a user