diff options
author | Adrian Frühwirth | 2018-03-26 00:49:33 +0200 |
---|---|---|
committer | Adrian Frühwirth | 2018-03-26 01:07:31 +0200 |
commit | 77a6a9a30c37f39d1b3eab7ac709456ac8e04cb1 (patch) | |
tree | a3aa74b9beadbe502e41eedc13be301933c72caa /engines | |
parent | 25535c10c2f8ce70d50e719f5debaf2ee6840d74 (diff) | |
download | scummvm-rg350-77a6a9a30c37f39d1b3eab7ac709456ac8e04cb1.tar.gz scummvm-rg350-77a6a9a30c37f39d1b3eab7ac709456ac8e04cb1.tar.bz2 scummvm-rg350-77a6a9a30c37f39d1b3eab7ac709456ac8e04cb1.zip |
COMPOSER: Let listSaves return list sorted on slot numbers
Diffstat (limited to 'engines')
-rw-r--r-- | engines/composer/detection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/composer/detection.cpp b/engines/composer/detection.cpp index dd1ce2751c..72a8f8256f 100644 --- a/engines/composer/detection.cpp +++ b/engines/composer/detection.cpp @@ -514,7 +514,6 @@ SaveStateList ComposerMetaEngine::listSaves(const char *target) const { Common::String pattern = Common::String::format("%s.??", target); 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) { @@ -531,6 +530,7 @@ SaveStateList ComposerMetaEngine::listSaves(const char *target) const { } } + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |