use remainder for format check.

This commit is contained in:
morkt 2015-05-03 05:37:08 +04:00
parent 9527412933
commit 946173bd1a

View File

@ -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;