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

@ -37,7 +37,7 @@ namespace GameRes
/// <summary> /// <summary>
/// Name of the stream (could be name of the underlying file) or an empty string. /// Name of the stream (could be name of the underlying file) or an empty string.
/// </summary> /// </summary>
string Name { get; get; } string Name { get; set; }
/// <summary> /// <summary>
/// First 4 bytes of the stream as a little-endian integer. /// First 4 bytes of the stream as a little-endian integer.
/// </summary> /// </summary>

View File

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