diff options
author | Filippos Karapetis | 2016-01-14 02:14:54 +0200 |
---|---|---|
committer | Filippos Karapetis | 2016-01-14 23:41:34 +0200 |
commit | 280bd0f7c2d426a1725118067db08ca2ca917e43 (patch) | |
tree | 90e17d036bae7865b39a6369d877e265c0c66e29 /engines/lab/anim.cpp | |
parent | b61ade788e75f7c610f46333aefd4559ad6f28e1 (diff) | |
download | scummvm-rg350-280bd0f7c2d426a1725118067db08ca2ca917e43.tar.gz scummvm-rg350-280bd0f7c2d426a1725118067db08ca2ca917e43.tar.bz2 scummvm-rg350-280bd0f7c2d426a1725118067db08ca2ca917e43.zip |
LAB: Read the header of DIFF files when opening them
Diffstat (limited to 'engines/lab/anim.cpp')
-rw-r--r-- | engines/lab/anim.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/lab/anim.cpp b/engines/lab/anim.cpp index 6e2f6fd81d..3da4519109 100644 --- a/engines/lab/anim.cpp +++ b/engines/lab/anim.cpp @@ -286,10 +286,9 @@ void Anim::readDiff(Common::File *diffFile, bool playOnce, bool onlyDiffData) { _diffFile = diffFile; _continuous = false; - uint32 signature1 = _diffFile->readUint32BE(); - uint32 signature2 = _diffFile->readUint32LE(); - if ((signature1 != MKTAG('D', 'I', 'F', 'F')) || (signature2 != 1219009121)) { + uint32 magicBytes = _diffFile->readUint32LE(); + if (magicBytes != 1219009121) { _isPlaying = false; return; } |