(RcbReader): fixed input counter.

This commit is contained in:
morkt 2018-01-21 11:52:48 +04:00
parent e38644bab4
commit 834fc8631b

View File

@ -198,9 +198,8 @@ namespace GameRes.Formats.Groover
{
m_input.Position = 0x18;
var output = new byte[m_unpacked_size];
int src = 0;
int dst = 0;
while (src < m_packed_size && dst < m_unpacked_size)
for (int src = 0; src < m_packed_size && dst < m_unpacked_size; ++src)
{
m_input.Read (output, dst, 3);
int count = m_input.ReadUInt8();