[Scummvm-git-logs] scummvm master -> 07c16c6be05d41439a7355970b2bc7a1c580f4e2

Helco noreply at scummvm.org
Tue Dec 9 10:40:13 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
07c16c6be0 ALCACHOFA: Fix duplicate saves in menu


Commit: 07c16c6be05d41439a7355970b2bc7a1c580f4e2
    https://github.com/scummvm/scummvm/commit/07c16c6be05d41439a7355970b2bc7a1c580f4e2
Author: Helco (hermann.noll at hotmail.com)
Date: 2025-12-09T11:39:26+01:00

Commit Message:
ALCACHOFA: Fix duplicate saves in menu

Changed paths:
    engines/alcachofa/menu.cpp


diff --git a/engines/alcachofa/menu.cpp b/engines/alcachofa/menu.cpp
index 9bcc3d6b267..7749c49bab0 100644
--- a/engines/alcachofa/menu.cpp
+++ b/engines/alcachofa/menu.cpp
@@ -256,7 +256,8 @@ void Menu::triggerSave() {
 		error = g_engine->saveGameStream(savefile.get());
 	if (error.getCode() == kNoError) {
 		g_engine->getMetaEngine()->appendExtendedSave(savefile.get(), g_engine->getTotalPlayTime(), _selectedSavefileDescription, false);
-		_savefiles.push_back(fileName);
+		if (_selectedSavefileI >= _savefiles.size())
+			_savefiles.push_back(fileName);
 		updateSelectedSavefile(true);
 	} else {
 		GUI::MessageDialog dialog(error.getTranslatedDesc());




More information about the Scummvm-git-logs mailing list