(ShiinaRio.Decoder): fixed index length for older versions.

This commit is contained in:
morkt 2018-05-01 16:38:38 +04:00
parent 04c28704f2
commit 2b2b8776c2

View File

@ -600,7 +600,7 @@ namespace GameRes.Formats.ShiinaRio
uint GetMaxIndexLength (int version)
{
int max_index_entries = version < 150 ? 8192 : 16384;
int max_index_entries = version < 150 || SchemeVersion < 2310 ? 8192 : 16384;
return (uint)((m_scheme.EntryNameSize + 0x18) * max_index_entries);
}