mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 12:39:16 +08:00
(GrdReader): check read count.
This commit is contained in:
parent
3d43247015
commit
a4731f05d5
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user