aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2016-02-25 19:55:14 +0100
committerJohannes Schickel2016-02-25 21:39:45 +0100
commit4892a83cf625cfb09f70565c0332d9e007a3858b (patch)
tree3b35d804b754a05608c9331ebfbc548b94cef21d /engines
parentc31fdb1efcf76c3862dc93aa1ff7e3ea52df6e76 (diff)
downloadscummvm-rg350-4892a83cf625cfb09f70565c0332d9e007a3858b.tar.gz
scummvm-rg350-4892a83cf625cfb09f70565c0332d9e007a3858b.tar.bz2
scummvm-rg350-4892a83cf625cfb09f70565c0332d9e007a3858b.zip
LURE: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines')
-rw-r--r--engines/lure/detection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/lure/detection.cpp b/engines/lure/detection.cpp
index 902e8afd65..d0a8ee0b4a 100644
--- a/engines/lure/detection.cpp
+++ b/engines/lure/detection.cpp
@@ -245,7 +245,6 @@ SaveStateList LureMetaEngine::listSaves(const char *target) const {
Common::String pattern = "lure.###";
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) {
@@ -262,6 +261,8 @@ SaveStateList LureMetaEngine::listSaves(const char *target) const {
}
}
+ // Sort saves based on slot number.
+ Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator());
return saveList;
}