aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-09 16:16:08 +0000
committerJohannes Schickel2009-07-09 16:16:08 +0000
commit1ac515c629898f7642d55588141d6168293a9331 (patch)
treee006f85ef04b4229fba3757e9470c04cc77fb4b1 /engines
parent0aa83f14c760ae790b738e5957fb8c3d9930697f (diff)
downloadscummvm-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.cpp2
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