mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(CowArray.IndexOf): fixed.
This commit is contained in:
parent
8aec9a4ae2
commit
9a0c6ef5cd
@ -70,12 +70,15 @@ namespace GameRes
|
|||||||
|
|
||||||
public int IndexOf (T item)
|
public int IndexOf (T item)
|
||||||
{
|
{
|
||||||
return Array.IndexOf<T> (m_source, item, m_offset, m_count);
|
int i = Array.IndexOf<T> (m_source, item, m_offset, m_count);
|
||||||
|
if (-1 == i)
|
||||||
|
return i;
|
||||||
|
return i - m_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Contains (T item)
|
public bool Contains (T item)
|
||||||
{
|
{
|
||||||
return IndexOf (item) != -1;
|
return Array.IndexOf<T> (m_source, item, m_offset, m_count) != -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CopyTo (T[] arr, int dst)
|
public void CopyTo (T[] arr, int dst)
|
||||||
|
Loading…
Reference in New Issue
Block a user