diff --git a/ArcFormats/ImagePMP.cs b/ArcFormats/ImagePMP.cs index c32f682b..daea6d9e 100644 --- a/ArcFormats/ImagePMP.cs +++ b/ArcFormats/ImagePMP.cs @@ -52,7 +52,7 @@ namespace GameRes.Formats.ScenePlayer return null; int flg = stream.ReadByte() ^ 0x21; int fcheck = first << 8 | flg; - if (fcheck / 0x1f * 0x1f != fcheck) + if (fcheck % 0x1f != 0) return null; stream.Position = 0;