relaxed entry placement check.

archives with external index and single entry didn't pass check.
This commit is contained in:
morkt 2015-11-26 02:23:24 +04:00
parent 2f7706f228
commit b38e3a0601

View File

@ -51,7 +51,7 @@ namespace GameRes
/// </summary> /// </summary>
public bool CheckPlacement (long max_offset) 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;
} }
} }