Replace predicate find with simple find

This commit is contained in:
wrenge 2024-11-13 17:15:32 +03:00
parent 4824f29db7
commit 12e09475f0
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ namespace DotRecast.Core.Collections
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;