aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-03-26 00:52:54 +0200
committerAdrian Frühwirth2018-03-26 01:07:32 +0200
commit114bedc5fe325bef71dbb07eec402cf9b00e895c (patch)
tree8e13f0cdcebfe70483c05204a1e1f0ea95fdd2cb /engines/sherlock
parent8ed5969ea1208f3c25fd193dbcdbae9436a7c75d (diff)
downloadscummvm-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')
-rw-r--r--engines/sherlock/saveload.cpp2
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;
}