diff --git a/ArcFormats/Ail/ArcAil.cs b/ArcFormats/Ail/ArcAil.cs index fdedc1b3..bba68433 100644 --- a/ArcFormats/Ail/ArcAil.cs +++ b/ArcFormats/Ail/ArcAil.cs @@ -95,7 +95,7 @@ namespace GameRes.Formats.Ail } index_offset += 4; } - if (0 == dir.Count) + if (0 == dir.Count || (file.MaxOffset - offset) > 0x80000) return null; DetectFileTypes (file, dir); return dir;