[Scummvm-git-logs] scummvm master -> a9ea849d8aa69db255f123eecbbb77b08fba3053

AndywinXp noreply at scummvm.org
Fri Nov 8 20:58:04 UTC 2024


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:
a9ea849d8a SCUMM: v7: Fix canWriteGame() routine for savegames


Commit: a9ea849d8aa69db255f123eecbbb77b08fba3053
    https://github.com/scummvm/scummvm/commit/a9ea849d8aa69db255f123eecbbb77b08fba3053
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-11-08T21:57:58+01:00

Commit Message:
SCUMM: v7: Fix canWriteGame() routine for savegames

It erroneously referred to the previous savestate in the list.

Changed paths:
    engines/scumm/gfx_gui.cpp


diff --git a/engines/scumm/gfx_gui.cpp b/engines/scumm/gfx_gui.cpp
index 154d76ebd0d..4a22340221a 100644
--- a/engines/scumm/gfx_gui.cpp
+++ b/engines/scumm/gfx_gui.cpp
@@ -2257,7 +2257,7 @@ bool ScummEngine::canWriteGame(int slotId) {
 		return true;
 
 	listSavegames(saveList, ARRAYSIZE(saveList));
-	if (saveList[slotId - 1]) {
+	if (saveList[slotId]) {
 		convertMessageToString((const byte *)getGUIString(gsReplacePrompt), (byte *)msgLabelPtr, sizeof(msgLabelPtr));
 
 		// Fallback to a hardcoded string




More information about the Scummvm-git-logs mailing list