diff --git a/ArcFormats/Malie/ImageDZI.cs b/ArcFormats/Malie/ImageDZI.cs index d1df1536..83eea814 100644 --- a/ArcFormats/Malie/ImageDZI.cs +++ b/ArcFormats/Malie/ImageDZI.cs @@ -59,6 +59,8 @@ namespace GameRes.Formats.Malie public override ImageMetaData ReadMetaData (Stream stream) { var tex = VFS.FindFile ("tex"); + if (!(tex is SubDirEntry)) + return null; using (var reader = new StreamReader (stream, Encoding.UTF8, false, 2048, true)) { reader.ReadLine(); // skip signature