diff options
author | Johannes Schickel | 2016-02-25 19:55:13 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | 0170982a53c5b7a620e4ce91ba9a79a2cb4f3fc8 (patch) | |
tree | d5f01d80c834c9fea70525ad3729c5aa51e7f813 /engines | |
parent | a8d9478e46145ef2c71d6d4d461142c9d8c9b48d (diff) | |
download | scummvm-rg350-0170982a53c5b7a620e4ce91ba9a79a2cb4f3fc8.tar.gz scummvm-rg350-0170982a53c5b7a620e4ce91ba9a79a2cb4f3fc8.tar.bz2 scummvm-rg350-0170982a53c5b7a620e4ce91ba9a79a2cb4f3fc8.zip |
DRACI: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/draci/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/draci/detection.cpp b/engines/draci/detection.cpp index a32dae3216..82b6935d72 100644 --- a/engines/draci/detection.cpp +++ b/engines/draci/detection.cpp @@ -120,7 +120,6 @@ SaveStateList DraciMetaEngine::listSaves(const char *target) const { Common::String pattern("draci.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) { @@ -143,6 +142,8 @@ SaveStateList DraciMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |