Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Dec 11, 2024
1 parent 5c4c774 commit e03f8f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DotRecast.Core/Collections/RcSortedQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +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 e03f8f3

Please sign in to comment.