From 304a4489378e3bd79a5aec562099736dc6a9b326 Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 6 Jul 2018 15:36:23 +0400 Subject: [PATCH] (MBF): handle single-entries archives. --- ArcFormats/Tanaka/ArcMBF.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArcFormats/Tanaka/ArcMBF.cs b/ArcFormats/Tanaka/ArcMBF.cs index 69ff240e..7a1ac4c4 100644 --- a/ArcFormats/Tanaka/ArcMBF.cs +++ b/ArcFormats/Tanaka/ArcMBF.cs @@ -49,7 +49,7 @@ namespace GameRes.Formats.Will return null; uint data_offset = file.View.ReadUInt32 (8); uint index_offset = 0x20; - if (0 != (file.View.ReadByte (0xC) & 1)) + if (0 != (file.View.ReadByte (0xC) & 1) && count > 1) { index_offset += file.View.ReadUInt16 (index_offset); --count;