diff options
author | Thierry Crozat | 2017-11-17 21:53:21 +0000 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:40 +0000 |
commit | 96afb54cc6457feec3ef9cac91a5f53a319b485e (patch) | |
tree | 8f504a70b006b92c485fcb5ce3e47b4be2c99f4c /engines | |
parent | 7d72ae0d0d2c02a012f6f7362f6110e503813309 (diff) | |
download | scummvm-rg350-96afb54cc6457feec3ef9cac91a5f53a319b485e.tar.gz scummvm-rg350-96afb54cc6457feec3ef9cac91a5f53a319b485e.tar.bz2 scummvm-rg350-96afb54cc6457feec3ef9cac91a5f53a319b485e.zip |
SUPERNOVA: Fix listing saves
The code was only looking at the last two digits of the file name, and
as a result the game autosaved in slot 999 was listed in slot 99.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/supernova/detection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/supernova/detection.cpp b/engines/supernova/detection.cpp index e3f485686d..61a99f083c 100644 --- a/engines/supernova/detection.cpp +++ b/engines/supernova/detection.cpp @@ -134,7 +134,7 @@ SaveStateList SupernovaMetaEngine::listSaves(const char *target) const { SaveStateList saveFileList; for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) { - int saveSlot = atoi(file->c_str() + file->size() - 2); + int saveSlot = atoi(file->c_str() + file->size() - 3); if (saveSlot >= 0 && saveSlot <= getMaximumSaveSlot()) { Common::InSaveFile *savefile = g_system->getSavefileManager()->openForLoading(*file); if (savefile) { |