From 816bb74ddc8c6d30c70a1a83b5f6d54df8f1d950 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 16 Oct 2016 16:50:51 +0400 Subject: [PATCH] fixed errors. --- GameRes/BinaryStream.cs | 2 +- GameRes/ByteArray.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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])