mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
additional check to avoid false positives.
This commit is contained in:
@@ -52,6 +52,8 @@ namespace GameRes.Formats.KAAS
|
|||||||
return null;
|
return null;
|
||||||
int key = file.View.ReadByte (1);
|
int key = file.View.ReadByte (1);
|
||||||
int count = 0xfff & file.View.ReadUInt16 (index_offset);
|
int count = 0xfff & file.View.ReadUInt16 (index_offset);
|
||||||
|
if (0 == count)
|
||||||
|
return null;
|
||||||
index_offset += 16;
|
index_offset += 16;
|
||||||
|
|
||||||
byte[] index = new byte[count*8];
|
byte[] index = new byte[count*8];
|
||||||
|
|||||||
Reference in New Issue
Block a user