From 1d16700780f8ecbd7bd545f737cd45d5c6a3b7e4 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 16 Oct 2016 17:40:51 +0400 Subject: [PATCH] (BinMemoryStream.ReadBytes): fixed. --- GameRes/BinaryStream.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/GameRes/BinaryStream.cs b/GameRes/BinaryStream.cs index 654e0ede..d8ed716a 100644 --- a/GameRes/BinaryStream.cs +++ b/GameRes/BinaryStream.cs @@ -620,6 +620,7 @@ namespace GameRes count = Math.Min (count, m_length - m_position); var buffer = new byte[count]; Buffer.BlockCopy (m_source, m_start+m_position, buffer, 0, count); + m_position += count; return buffer; }