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>
/// Name of the stream (could be name of the underlying file) or an empty string.
/// </summary>
string Name { get; get; }
string Name { get; set; }
/// <summary>
/// First 4 bytes of the stream as a little-endian integer.
/// </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>
{
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])