diff --git a/ArcFormats/MnoViolet/ArcMnoViolet.cs b/ArcFormats/MnoViolet/ArcMnoViolet.cs index b0c8531b..4672a28e 100644 --- a/ArcFormats/MnoViolet/ArcMnoViolet.cs +++ b/ArcFormats/MnoViolet/ArcMnoViolet.cs @@ -52,7 +52,8 @@ namespace GameRes.Formats.MnoViolet return null; uint name_size = 100; uint index_size = (uint)((name_size+8) * count); - if (index_size > file.View.Reserve (4, index_size)) + uint first_offset = file.View.ReadUInt32 (4+name_size+4); + if (first_offset != (4 + index_size) || index_size > file.View.Reserve (4, index_size)) return null; var dir = new List (count); long index_offset = 4;