diff options
author | James Brown | 2002-12-12 16:29:21 +0000 |
---|---|---|
committer | James Brown | 2002-12-12 16:29:21 +0000 |
commit | ce4690c7c6de9a47c45afc2f451709f9ddd98b8d (patch) | |
tree | f42b296bb059ac79aed0b84bd67c1609d7f59c38 /scumm/resource_v2.cpp | |
parent | 57d8bb978f8808b5884a717a4d032b68eab4db76 (diff) | |
download | scummvm-rg350-ce4690c7c6de9a47c45afc2f451709f9ddd98b8d.tar.gz scummvm-rg350-ce4690c7c6de9a47c45afc2f451709f9ddd98b8d.tar.bz2 scummvm-rg350-ce4690c7c6de9a47c45afc2f451709f9ddd98b8d.zip |
Tidy one or two things up for future V1/V2/V8 SCUMM support.
svn-id: r5915
Diffstat (limited to 'scumm/resource_v2.cpp')
-rw-r--r-- | scumm/resource_v2.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scumm/resource_v2.cpp b/scumm/resource_v2.cpp index 4415afcdcf..ea4c5d0de8 100644 --- a/scumm/resource_v2.cpp +++ b/scumm/resource_v2.cpp @@ -26,13 +26,14 @@ void Scumm_v2::readIndexFile() { + int magic = 0; debug(9, "readIndexFile()"); openRoom(-1); openRoom(0); - if (_fileHandle.readUint16LE() != 0x0100) - warning("The magic id doesn't match\n"); + if (magic = _fileHandle.readUint16LE() != 0x0100) + warning("The magic id doesn't match (0x%X)\n", magic); _numGlobalObjects = _fileHandle.readUint16LE(); _fileHandle.seek(_numGlobalObjects, SEEK_CUR); // Skip object flags |