Bugfix for loading savegames where the active resource file database isn't completely filled
svn-id: r42047
This commit is contained in:
parent
c3403ac739
commit
3190bf68f2
1 changed files with 6 additions and 2 deletions
|
@ -898,11 +898,15 @@ Common::Error loadSavegameData(int saveGameIdx) {
|
||||||
printf("Unsupported mono file load!\n");
|
printf("Unsupported mono file load!\n");
|
||||||
ASSERT(0);
|
ASSERT(0);
|
||||||
//loadFileMode1(filesDatabase[j].subData.name,filesDatabase[j].subData.var4);
|
//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);
|
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;
|
lowMemory = lowMemorySave;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue