aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-27 17:48:40 +0000
committerJohannes Schickel2009-07-27 17:48:40 +0000
commit595501b60c86ef41397b82026b0abd0390ff75cd (patch)
tree2b68a9dcb21944e4070731b19a69d0bd5b1c4f72 /engines
parentd165f85a58d9d5df88e3d1faf14bd89118350391 (diff)
downloadscummvm-rg350-595501b60c86ef41397b82026b0abd0390ff75cd.tar.gz
scummvm-rg350-595501b60c86ef41397b82026b0abd0390ff75cd.tar.bz2
scummvm-rg350-595501b60c86ef41397b82026b0abd0390ff75cd.zip
Fix bug #2827459 "ITE: Ingame GUI does not list slots 96-99", by defining in SagaMetaEngine that the last valid save slot for SAGA is slot 95.
svn-id: r42845
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/detection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/saga/detection.cpp b/engines/saga/detection.cpp
index faf9cbed80..265008992a 100644
--- a/engines/saga/detection.cpp
+++ b/engines/saga/detection.cpp
@@ -204,7 +204,7 @@ SaveStateList SagaMetaEngine::listSaves(const char *target) const {
// Obtain the last 2 digits of the filename, since they correspond to the save slot
slotNum = atoi(file->c_str() + file->size() - 2);
- if (slotNum >= 0 && slotNum <= 99) {
+ if (slotNum >= 0 && slotNum < MAX_SAVES) {
Common::InSaveFile *in = saveFileMan->openForLoading(*file);
if (in) {
for (int i = 0; i < 3; i++)
@@ -219,7 +219,7 @@ SaveStateList SagaMetaEngine::listSaves(const char *target) const {
return saveList;
}
-int SagaMetaEngine::getMaximumSaveSlot() const { return 99; }
+int SagaMetaEngine::getMaximumSaveSlot() const { return MAX_SAVES - 1; }
void SagaMetaEngine::removeSaveState(const char *target, int slot) const {
char extension[6];