diff options
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/mads/detection.cpp b/engines/mads/detection.cpp index 0357bd4bcc..b3ba60b6d0 100644 --- a/engines/mads/detection.cpp +++ b/engines/mads/detection.cpp @@ -192,7 +192,6 @@ SaveStateList MADSMetaEngine::listSaves(const char *target) const { MADS::MADSSavegameHeader header; filenames = saveFileMan->listSavefiles(pattern); - sort(filenames.begin(), filenames.end()); // Sort to get the files in numerical order SaveStateList saveList; for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) { @@ -213,6 +212,8 @@ SaveStateList MADSMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |