[Scummvm-git-logs] scummvm master -> f0e1234a81c711178bca9b116bcf898f1212c13c
sev-
noreply at scummvm.org
Thu Nov 7 23:09:02 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:
f0e1234a81 GUI: Do not allow new saveslots exceed engine max. Bug #11645
Commit: f0e1234a81c711178bca9b116bcf898f1212c13c
https://github.com/scummvm/scummvm/commit/f0e1234a81c711178bca9b116bcf898f1212c13c
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-11-08T00:08:56+01:00
Commit Message:
GUI: Do not allow new saveslots exceed engine max. Bug #11645
Changed paths:
gui/saveload-dialog.cpp
diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp
index 6edb1f91db0..fffd561a012 100644
--- a/gui/saveload-dialog.cpp
+++ b/gui/saveload-dialog.cpp
@@ -965,6 +965,10 @@ void SaveLoadChooserGrid::open() {
_nextFreeSaveSlot = i + 1;
}
}
+
+ // Do not allow more slots than available
+ if (_nextFreeSaveSlot > maxSlot)
+ _nextFreeSaveSlot = -1;
}
updateSaves();
More information about the Scummvm-git-logs
mailing list