[Scummvm-git-logs] scummvm branch-2-7 -> e8431cfd255dd0604b45a7a4744905baa75b6d32
mduggan
noreply at scummvm.org
Sat Jan 21 07:50:18 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e8431cfd25 ULTIMA8: Check "lastSave" setting exists before using as save slot.
Commit: e8431cfd255dd0604b45a7a4744905baa75b6d32
https://github.com/scummvm/scummvm/commit/e8431cfd255dd0604b45a7a4744905baa75b6d32
Author: Matthew Jimenez (matthew.jimenez at outlook.com)
Date: 2023-01-21T16:50:09+09:00
Commit Message:
ULTIMA8: Check "lastSave" setting exists before using as save slot.
This was forcing slot zero when even if no saves exist, causing an error on load
Changed paths:
engines/ultima/ultima8/ultima8.cpp
diff --git a/engines/ultima/ultima8/ultima8.cpp b/engines/ultima/ultima8/ultima8.cpp
index 949d527c6ab..78a87c2cf0f 100644
--- a/engines/ultima/ultima8/ultima8.cpp
+++ b/engines/ultima/ultima8/ultima8.cpp
@@ -524,7 +524,7 @@ Common::Error Ultima8Engine::startupGame() {
_audioMixer->openMidiOutput();
int saveSlot = ConfMan.hasKey("save_slot") ? ConfMan.getInt("save_slot") : -1;
- if (saveSlot == -1)
+ if (saveSlot == -1 && ConfMan.hasKey("lastSave"))
saveSlot = ConfMan.getInt("lastSave");
newGame(saveSlot);
More information about the Scummvm-git-logs
mailing list