(Zlc2Reader.Unpack): fixed remaining counter.

This commit is contained in:
morkt 2016-12-26 19:57:53 +04:00
parent c524a41041
commit f1072d81df

View File

@ -178,6 +178,7 @@ namespace GameRes.Formats.CandySoft
int offset = m_input.ReadUInt8();
int count = m_input.ReadUInt8();
remaining -= 2;
offset |= (count & 0xF0) << 4;
count = (count & 0x0F) + 3;
@ -192,6 +193,7 @@ namespace GameRes.Formats.CandySoft
else
{
m_output[dst++] = m_input.ReadUInt8();
remaining--;
}
}
}