fixed entries skipping in AVC index parser.

This commit is contained in:
morkt 2015-04-06 17:06:31 +04:00
parent 3650164c2d
commit 68038edf00

View File

@ -98,7 +98,10 @@ namespace GameRes.Formats.AVC
while (name_length < 0x100 && 0 != index[index_offset+name_length])
name_length++;
if (0 == name_length)
{
index_offset += 0x113;
continue;
}
var name = Encodings.cp932.GetString (index, index_offset, name_length);
var entry = FormatCatalog.Instance.CreateEntry (name);
index_offset += 0x107;