From 96afb54cc6457feec3ef9cac91a5f53a319b485e Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Fri, 17 Nov 2017 21:53:21 +0000 Subject: 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. --- engines/supernova/detection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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) { -- cgit v1.2.3