fixed errors.

This commit is contained in:
morkt
2016-10-16 16:50:51 +04:00
parent b068b56ca4
commit 816bb74ddc
2 changed files with 2 additions and 2 deletions

View File

@@ -177,7 +177,7 @@ namespace GameRes
public static bool AsciiEqual<TArray> (this TArray arr, int index, string str) where TArray : IList<byte>
{
if (arr.Length-index < str.Length)
if (arr.Count-index < str.Length)
return false;
for (int i = 0; i < str.Length; ++i)
if ((char)arr[index+i] != str[i])