diff options
author | Johannes Schickel | 2009-07-09 16:16:08 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-07-09 16:16:08 +0000 |
commit | 1ac515c629898f7642d55588141d6168293a9331 (patch) | |
tree | e006f85ef04b4229fba3757e9470c04cc77fb4b1 /engines | |
parent | 0aa83f14c760ae790b738e5957fb8c3d9930697f (diff) | |
download | scummvm-rg350-1ac515c629898f7642d55588141d6168293a9331.tar.gz scummvm-rg350-1ac515c629898f7642d55588141d6168293a9331.tar.bz2 scummvm-rg350-1ac515c629898f7642d55588141d6168293a9331.zip |
By comparing the commit log of r42300, it seems that "off" was renamed to "lastDirectoryOffset". I changed the SCI32 specific code to use that now. I can't assure this is anyhow correct, so anyone with knowledge of this code please check it.
svn-id: r42303
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/resource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 9d791f615c..b248729503 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -766,7 +766,7 @@ int ResourceManager::detectMapVersion() { #ifdef ENABLE_SCI32 // late SCI1.1 and SCI32 maps have last directory entry set to 0xFF // offset set to filesize and 4 more bytes - file.seek(off - 7, SEEK_SET); + file.seek(lastDirectoryOffset - 7, SEEK_SET); if (file.readByte() == 0xFF && file.readUint16LE() == file.size()) return SCI_VERSION_32; // TODO : check if there is a difference between these maps #endif |