diff options
author | Johannes Schickel | 2016-02-25 19:55:14 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | cb07a1bb1df4f496b9f6cf4eef3d417d0f991e4e (patch) | |
tree | c56878ce491847abf807668ff14fffd8db424530 /engines | |
parent | c5f4197fd0f7d5c792ce24ec007d61ba3ed6044b (diff) | |
download | scummvm-rg350-cb07a1bb1df4f496b9f6cf4eef3d417d0f991e4e.tar.gz scummvm-rg350-cb07a1bb1df4f496b9f6cf4eef3d417d0f991e4e.tar.bz2 scummvm-rg350-cb07a1bb1df4f496b9f6cf4eef3d417d0f991e4e.zip |
QUEEN: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/queen/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/queen/detection.cpp b/engines/queen/detection.cpp index 32c760bf63..4e87b7e5c2 100644 --- a/engines/queen/detection.cpp +++ b/engines/queen/detection.cpp @@ -477,7 +477,6 @@ SaveStateList QueenMetaEngine::listSaves(const char *target) const { Common::String pattern("queen.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) { @@ -496,6 +495,8 @@ SaveStateList QueenMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |