diff options
author | Paul Gilbert | 2009-05-16 04:04:35 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-05-16 04:04:35 +0000 |
commit | 7ca0ca1dab227380425c314d285da4e0261e1b09 (patch) | |
tree | 318a423eee265475e548ccb5598b07ef3c1f4b01 /engines | |
parent | 358be385b53790d90e6974e0a237936fa59fbbb1 (diff) | |
download | scummvm-rg350-7ca0ca1dab227380425c314d285da4e0261e1b09.tar.gz scummvm-rg350-7ca0ca1dab227380425c314d285da4e0261e1b09.tar.bz2 scummvm-rg350-7ca0ca1dab227380425c314d285da4e0261e1b09.zip |
Corrected mixed up parameter usage in the LoadFile method
svn-id: r40617
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cruise/dataLoader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cruise/dataLoader.cpp b/engines/cruise/dataLoader.cpp index be36df34d6..b393d55106 100644 --- a/engines/cruise/dataLoader.cpp +++ b/engines/cruise/dataLoader.cpp @@ -248,10 +248,10 @@ int loadFile(const char* name, int idx, int destIdx) { int numMaxEntriesInSet = getNumMaxEntiresInSet(ptr); - if (idx > numMaxEntriesInSet) { + if (destIdx > numMaxEntriesInSet) { return 0; // exit if limit is reached } - return loadSetEntry(name, ptr, idx, destIdx); + return loadSetEntry(name, ptr, destIdx, idx); break; } |