(GrdReader): check read count.

This commit is contained in:
morkt 2017-12-26 20:04:40 +04:00
parent 3d43247015
commit a4731f05d5

View File

@ -193,7 +193,7 @@ namespace GameRes.Formats.TmrHiro
for (int i = 0; i < count; ++i) for (int i = 0; i < count; ++i)
m_channel[dst++] = v; m_channel[dst++] = v;
} }
else else if (count > 0)
{ {
input.Read (m_channel, dst, count); input.Read (m_channel, dst, count);
src += count; src += count;