additional check to avoid false positives.

This commit is contained in:
morkt 2015-04-12 23:01:45 +04:00
parent 0183e8be52
commit 3d4b74e34a

View File

@ -52,6 +52,8 @@ namespace GameRes.Formats.KAAS
return null;
int key = file.View.ReadByte (1);
int count = 0xfff & file.View.ReadUInt16 (index_offset);
if (0 == count)
return null;
index_offset += 16;
byte[] index = new byte[count*8];