diff options
author | Johannes Schickel | 2016-02-25 19:17:49 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | 99c59cdeb28ac7e6d80a9343c3b2ca5af9b46b66 (patch) | |
tree | 36d5ec46a95cda1596c0f702750fb389db7d5161 /engines | |
parent | f3f37af61b9639d67b113035987182d9eef8c120 (diff) | |
download | scummvm-rg350-99c59cdeb28ac7e6d80a9343c3b2ca5af9b46b66.tar.gz scummvm-rg350-99c59cdeb28ac7e6d80a9343c3b2ca5af9b46b66.tar.bz2 scummvm-rg350-99c59cdeb28ac7e6d80a9343c3b2ca5af9b46b66.zip |
AGOS: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agos/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/agos/detection.cpp b/engines/agos/detection.cpp index 94446159b9..82f8ad4bf2 100644 --- a/engines/agos/detection.cpp +++ b/engines/agos/detection.cpp @@ -186,7 +186,6 @@ SaveStateList AgosMetaEngine::listSaves(const char *target) const { pattern += ".###"; 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) { @@ -203,6 +202,8 @@ SaveStateList AgosMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |