diff options
Diffstat (limited to 'engines/glk')
-rw-r--r-- | engines/glk/frotz/frotz.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/glk/frotz/frotz.cpp b/engines/glk/frotz/frotz.cpp index aaae44e670..c2341d4026 100644 --- a/engines/glk/frotz/frotz.cpp +++ b/engines/glk/frotz/frotz.cpp @@ -51,12 +51,12 @@ void Frotz::runGame(Common::SeekableReadStream *gameFile) { // If save was selected from the launcher, handle loading it int saveSlot = ConfMan.hasKey("save_slot") ? ConfMan.getInt("save_slot") : -1; if (saveSlot != -1) { - bool success = loadGameState(saveSlot).getCode() == Common::kNoError; + int loadResult = loadGameState(saveSlot).getCode() == Common::kNoError ? 2 : -1; if (h_version <= V3) - branch(success); + branch(loadResult); else - store(success); + store(loadResult); } // Game loop |