diff options
author | Adrian Frühwirth | 2018-03-26 00:52:54 +0200 |
---|---|---|
committer | Adrian Frühwirth | 2018-03-26 01:07:32 +0200 |
commit | 114bedc5fe325bef71dbb07eec402cf9b00e895c (patch) | |
tree | 8e13f0cdcebfe70483c05204a1e1f0ea95fdd2cb /engines/sherlock/saveload.cpp | |
parent | 8ed5969ea1208f3c25fd193dbcdbae9436a7c75d (diff) | |
download | scummvm-rg350-114bedc5fe325bef71dbb07eec402cf9b00e895c.tar.gz scummvm-rg350-114bedc5fe325bef71dbb07eec402cf9b00e895c.tar.bz2 scummvm-rg350-114bedc5fe325bef71dbb07eec402cf9b00e895c.zip |
SHERLOCK: Let listSaves return list sorted on slot numbers
Diffstat (limited to 'engines/sherlock/saveload.cpp')
-rw-r--r-- | engines/sherlock/saveload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/saveload.cpp b/engines/sherlock/saveload.cpp index 44b5e103d2..9d203a6a27 100644 --- a/engines/sherlock/saveload.cpp +++ b/engines/sherlock/saveload.cpp @@ -93,7 +93,6 @@ SaveStateList SaveManager::getSavegameList(const Common::String &target) { SherlockSavegameHeader header; filenames = saveFileMan->listSavefiles(pattern); - sort(filenames.begin(), filenames.end()); // Sort to get the files in numerical order SaveStateList saveList; for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) { @@ -116,6 +115,7 @@ SaveStateList SaveManager::getSavegameList(const Common::String &target) { } } + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |