From b38e3a0601aaeebe368d352bbd5a3ecaf9e271bc Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 26 Nov 2015 02:23:24 +0400 Subject: [PATCH] relaxed entry placement check. archives with external index and single entry didn't pass check. --- GameRes/GameRes.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameRes/GameRes.cs b/GameRes/GameRes.cs index a50ec657..5b6ac206 100644 --- a/GameRes/GameRes.cs +++ b/GameRes/GameRes.cs @@ -51,7 +51,7 @@ namespace GameRes /// public bool CheckPlacement (long max_offset) { - return Offset < max_offset && Size < max_offset && Offset <= max_offset - Size; + return Offset < max_offset && Size <= max_offset && Offset <= max_offset - Size; } }