(ArcStream.ReadInt24): fixed.

This commit is contained in:
morkt 2017-01-19 23:39:15 +04:00
parent 5689aa4417
commit 6b2aed909e

View File

@ -616,7 +616,7 @@ namespace GameRes
if (m_position + 3 > m_size) if (m_position + 3 > m_size)
throw new EndOfStreamException(); throw new EndOfStreamException();
int v = m_view.ReadUInt16 (m_start+m_position); int v = m_view.ReadUInt16 (m_start+m_position);
v |= m_view.ReadByte (m_start+m_position+2); v |= m_view.ReadByte (m_start+m_position+2) << 16;
m_position += 3; m_position += 3;
return v; return v;
} }