diff options
author | Paul Gilbert | 2009-07-03 06:19:20 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-07-03 06:19:20 +0000 |
commit | 3190bf68f2638f51a3aceb3d3d24ca0d405e6be6 (patch) | |
tree | 11debaf6136dc3a1bfe91bb07f3bfce870839525 /engines | |
parent | c3403ac7395cf9df9c4dad57b42e600b200660b5 (diff) | |
download | scummvm-rg350-3190bf68f2638f51a3aceb3d3d24ca0d405e6be6.tar.gz scummvm-rg350-3190bf68f2638f51a3aceb3d3d24ca0d405e6be6.tar.bz2 scummvm-rg350-3190bf68f2638f51a3aceb3d3d24ca0d405e6be6.zip |
Bugfix for loading savegames where the active resource file database isn't completely filled
svn-id: r42047
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cruise/saveload.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/cruise/saveload.cpp b/engines/cruise/saveload.cpp index d151950c5e..7fcc5ecb1b 100644 --- a/engines/cruise/saveload.cpp +++ b/engines/cruise/saveload.cpp @@ -898,11 +898,15 @@ Common::Error loadSavegameData(int saveGameIdx) { printf("Unsupported mono file load!\n"); ASSERT(0); //loadFileMode1(filesDatabase[j].subData.name,filesDatabase[j].subData.var4); - } else */{ + } else */ + if (strlen(filesDatabase[i].subData.name) > 0) { loadFileRange(filesDatabase[i].subData.name, filesDatabase[i].subData.index, i, j - i); - i = j - 1; + } else { + filesDatabase[i].subData.ptr = NULL; + filesDatabase[i].subData.ptrMask = NULL; } + i = j - 1; lowMemory = lowMemorySave; } } |