aboutsummaryrefslogtreecommitdiff
path: root/engines/simon/oracle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/simon/oracle.cpp')
-rw-r--r--engines/simon/oracle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/simon/oracle.cpp b/engines/simon/oracle.cpp
index 4f80367908..48ae045a32 100644
--- a/engines/simon/oracle.cpp
+++ b/engines/simon/oracle.cpp
@@ -161,9 +161,9 @@ void SimonEngine::listSaveGames(int n) {
int OK;
memset(b, 0, 108);
- maxFiles = countSaveGames();
- j = maxFiles - n;
- k = maxFiles - j;
+ maxFiles = countSaveGames() - 1;
+ j = maxFiles - n + 1;
+ k = maxFiles - j + 1;
z = maxFiles;
if (getBitFlag(95)) {
j++;