mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 11:04:44 +00:00
DRASCULA: Fix loading game from launcher
This was particularly an issue when the game had been saved in chapter 1 as in this case the load would happen too early and the game would crash. In other cases it was working but was not optimal (the gane loop was run once before it succeeded to load the game). This fixes bug #10959.
This commit is contained in:
parent
d0f210aeec
commit
9230026876
@ -274,7 +274,11 @@ Common::Error DrasculaEngine::run() {
|
||||
// Check if a save is loaded from the launcher
|
||||
int directSaveSlotLoading = ConfMan.getInt("save_slot");
|
||||
if (directSaveSlotLoading >= 0) {
|
||||
// Set the current chapter to -1. This forces the load to happen
|
||||
// later during the game loop, and not now.
|
||||
currentChapter = -1;
|
||||
loadGame(directSaveSlotLoading);
|
||||
currentChapter++;
|
||||
}
|
||||
|
||||
checkCD();
|
||||
|
Loading…
x
Reference in New Issue
Block a user