From ef8b4ba06b641ab5eab89d7bcdd143a58ff57115 Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 5 Jun 2016 23:36:48 +0400 Subject: [PATCH] (SzsOpener): entry count is 32-bit. --- ArcFormats/Slg/ArcSZS.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/Slg/ArcSZS.cs b/ArcFormats/Slg/ArcSZS.cs index 7939a1fd..81300bbd 100644 --- a/ArcFormats/Slg/ArcSZS.cs +++ b/ArcFormats/Slg/ArcSZS.cs @@ -44,7 +44,7 @@ namespace GameRes.Formats.Slg int version = file.View.ReadByte (4) - '0'; if (version < 0 || !file.View.AsciiEqual (5, "0__")) return null; - int count = file.View.ReadInt16 (0xC); + int count = file.View.ReadInt32 (0xC); if (!IsSaneCount (count)) return null;