Skip to content

Commit

Permalink
Replace predicate find with simple find
Browse files Browse the repository at this point in the history
  • Loading branch information
wrenge authored and ikpil committed Dec 11, 2024
1 parent 89928ab commit 1a7fcb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DotRecast.Core/Collections/RcSortedQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public bool Remove(T item)
return false;

//int idx = _items.BinarySearch(item, _comparer); // don't use this! Because reference types can be reused externally.
int idx = _items.FindLastIndex(x => item.Equals(x));
int idx = _items.LastIndexOf(item);
if (0 > idx)
return false;

Expand Down

0 comments on commit 1a7fcb3

Please sign in to comment.