aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle
diff options
context:
space:
mode:
authorAdrian Frühwirth2018-03-26 00:53:43 +0200
committerAdrian Frühwirth2018-03-26 01:07:32 +0200
commit8f6d8f7f68002d559a9c62c863edfc65c9dc8618 (patch)
tree4b22deca8c43ce9b7508846bf2f85ad628c3a753 /engines/mortevielle
parent114bedc5fe325bef71dbb07eec402cf9b00e895c (diff)
downloadscummvm-rg350-8f6d8f7f68002d559a9c62c863edfc65c9dc8618.tar.gz
scummvm-rg350-8f6d8f7f68002d559a9c62c863edfc65c9dc8618.tar.bz2
scummvm-rg350-8f6d8f7f68002d559a9c62c863edfc65c9dc8618.zip
MORTEVIELLE: Let listSaves return list sorted on slot numbers
Diffstat (limited to 'engines/mortevielle')
-rw-r--r--engines/mortevielle/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mortevielle/saveload.cpp b/engines/mortevielle/saveload.cpp
index 3065d6c551..3032c96690 100644
--- a/engines/mortevielle/saveload.cpp
+++ b/engines/mortevielle/saveload.cpp
@@ -240,7 +240,6 @@ SaveStateList SavegameManager::listSaves(const Common::String &target) {
pattern += ".###";
Common::StringArray files = g_system->getSavefileManager()->listSavefiles(pattern);
- sort(files.begin(), files.end()); // Sort (hopefully ensuring we are sorted numerically..)
SaveStateList saveList;
for (Common::StringArray::const_iterator file = files.begin(); file != files.end(); ++file) {
@@ -282,6 +281,7 @@ SaveStateList SavegameManager::listSaves(const Common::String &target) {
}
}
+ Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator());
return saveList;
}