(SzsOpener): entry count is 32-bit.

This commit is contained in:
morkt 2016-06-05 23:36:48 +04:00
parent 7347e5fac5
commit ef8b4ba06b

View File

@ -44,7 +44,7 @@ namespace GameRes.Formats.Slg
int version = file.View.ReadByte (4) - '0'; int version = file.View.ReadByte (4) - '0';
if (version < 0 || !file.View.AsciiEqual (5, "0__")) if (version < 0 || !file.View.AsciiEqual (5, "0__"))
return null; return null;
int count = file.View.ReadInt16 (0xC); int count = file.View.ReadInt32 (0xC);
if (!IsSaneCount (count)) if (!IsSaneCount (count))
return null; return null;