From 3041b9060677aa3c6e59202779cad69e982442a3 Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 22 May 2015 10:06:12 +0400 Subject: [PATCH] fixed index size check. --- ArcFormats/ArcGameDat.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/ArcGameDat.cs b/ArcFormats/ArcGameDat.cs index e16aab5c..9dcca51e 100644 --- a/ArcFormats/ArcGameDat.cs +++ b/ArcFormats/ArcGameDat.cs @@ -64,7 +64,7 @@ namespace GameRes.Formats.Pajamas int name_offset = 0x10; int index_offset = name_offset + name_length*count; int base_offset = index_offset + 8*count; - if ((uint)base_offset != file.View.Reserve (0, (uint)base_offset)) + if ((uint)base_offset > file.View.Reserve (0, (uint)base_offset)) return null; var dir = new List (count); for (int i = 0; i < count; ++i)