forked from mirror/DotRecast
Replace predicate find with simple find
This commit is contained in:
parent
4824f29db7
commit
12e09475f0
|
@ -88,7 +88,7 @@ namespace DotRecast.Core.Collections
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
//int idx = _items.BinarySearch(item, _comparer); // don't use this! Because reference types can be reused externally.
|
//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)
|
if (0 > idx)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue