diff options
author | Johannes Schickel | 2016-02-25 19:55:13 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | 56fc42c2f7102ed9b2002a10a1b6a7ff8a28fbfd (patch) | |
tree | 59ae11549c12c1ea763efaa8485d78d036e8c293 /engines | |
parent | 1e74033618f4581c41ddaff7b2ebcbd00299513d (diff) | |
download | scummvm-rg350-56fc42c2f7102ed9b2002a10a1b6a7ff8a28fbfd.tar.gz scummvm-rg350-56fc42c2f7102ed9b2002a10a1b6a7ff8a28fbfd.tar.bz2 scummvm-rg350-56fc42c2f7102ed9b2002a10a1b6a7ff8a28fbfd.zip |
KYRA: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/detection.cpp b/engines/kyra/detection.cpp index a4786ef583..989a45b420 100644 --- a/engines/kyra/detection.cpp +++ b/engines/kyra/detection.cpp @@ -246,7 +246,6 @@ SaveStateList KyraMetaEngine::listSaves(const char *target) const { Common::StringArray filenames; filenames = saveFileMan->listSavefiles(pattern); - Common::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) { @@ -269,6 +268,8 @@ SaveStateList KyraMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |