(BinMemoryStream.ReadBytes): fixed.

This commit is contained in:
morkt 2016-10-16 17:40:51 +04:00
parent 816bb74ddc
commit 1d16700780

View File

@ -620,6 +620,7 @@ namespace GameRes
count = Math.Min (count, m_length - m_position); count = Math.Min (count, m_length - m_position);
var buffer = new byte[count]; var buffer = new byte[count];
Buffer.BlockCopy (m_source, m_start+m_position, buffer, 0, count); Buffer.BlockCopy (m_source, m_start+m_position, buffer, 0, count);
m_position += count;
return buffer; return buffer;
} }