diff options
-rw-r--r-- | engines/fullpipe/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/fullpipe/detection.cpp b/engines/fullpipe/detection.cpp index ccd55935e6..99fbdc4b82 100644 --- a/engines/fullpipe/detection.cpp +++ b/engines/fullpipe/detection.cpp @@ -111,7 +111,6 @@ SaveStateList FullpipeMetaEngine::listSaves(const char *target) const { Common::String pattern("fullpipe.s##"); filenames = saveFileMan->listSavefiles(pattern); - sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..) SaveStateList saveList; for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) { @@ -130,6 +129,8 @@ SaveStateList FullpipeMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |