mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +08:00
(AImageReader): header could be of less than 8 elements length.
This commit is contained in:
parent
fe8d9cadb5
commit
bfed66e077
@ -60,7 +60,8 @@ namespace GameRes.Formats.Cyberworks
|
|||||||
|
|
||||||
public void Unpack ()
|
public void Unpack ()
|
||||||
{
|
{
|
||||||
var header = new int[m_scheme.HeaderOrder.Length];
|
int header_length = Math.Max (8, m_scheme.HeaderOrder.Length);
|
||||||
|
var header = new int[header_length];
|
||||||
for (int i = 0; i < m_scheme.HeaderOrder.Length; ++i)
|
for (int i = 0; i < m_scheme.HeaderOrder.Length; ++i)
|
||||||
{
|
{
|
||||||
int b = GetInt();
|
int b = GetInt();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user