diff --git a/GameRes/BinaryStream.cs b/GameRes/BinaryStream.cs index 0ba56cc3..654e0ede 100644 --- a/GameRes/BinaryStream.cs +++ b/GameRes/BinaryStream.cs @@ -37,7 +37,7 @@ namespace GameRes /// /// Name of the stream (could be name of the underlying file) or an empty string. /// - string Name { get; get; } + string Name { get; set; } /// /// First 4 bytes of the stream as a little-endian integer. /// diff --git a/GameRes/ByteArray.cs b/GameRes/ByteArray.cs index 21bf900d..eb352238 100644 --- a/GameRes/ByteArray.cs +++ b/GameRes/ByteArray.cs @@ -177,7 +177,7 @@ namespace GameRes public static bool AsciiEqual (this TArray arr, int index, string str) where TArray : IList { - 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])