diff options
author | Johannes Schickel | 2016-02-25 19:55:14 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | 2da54704af0ddc5d4e11ca46d87ad2c2b898e70b (patch) | |
tree | 66434fb66e806029580d51325c01f554991573a2 /engines | |
parent | de609c0a925e7ffb388ef66ecf9e70926c9b9c2c (diff) | |
download | scummvm-rg350-2da54704af0ddc5d4e11ca46d87ad2c2b898e70b.tar.gz scummvm-rg350-2da54704af0ddc5d4e11ca46d87ad2c2b898e70b.tar.bz2 scummvm-rg350-2da54704af0ddc5d4e11ca46d87ad2c2b898e70b.zip |
TONY: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tony/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tony/detection.cpp b/engines/tony/detection.cpp index 2f05c0abea..ec0b3e186b 100644 --- a/engines/tony/detection.cpp +++ b/engines/tony/detection.cpp @@ -118,7 +118,6 @@ SaveStateList TonyMetaEngine::listSaves(const char *target) const { Common::String pattern = "tony.0##"; 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) { @@ -137,6 +136,8 @@ SaveStateList TonyMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |