diff options
author | Johannes Schickel | 2016-02-25 19:14:51 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | cf685fbc6c6d3c91f0ff741567aec1efbcd35e9c (patch) | |
tree | b28d5a9da328d18cd00715924d86b7f891190675 /engines/access | |
parent | a155220100205fef939892ca5d605ea2af24d5ba (diff) | |
download | scummvm-rg350-cf685fbc6c6d3c91f0ff741567aec1efbcd35e9c.tar.gz scummvm-rg350-cf685fbc6c6d3c91f0ff741567aec1efbcd35e9c.tar.bz2 scummvm-rg350-cf685fbc6c6d3c91f0ff741567aec1efbcd35e9c.zip |
ACCESS: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines/access')
-rw-r--r-- | engines/access/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/access/detection.cpp b/engines/access/detection.cpp index 7494c9c047..2cd7e50f0f 100644 --- a/engines/access/detection.cpp +++ b/engines/access/detection.cpp @@ -146,7 +146,6 @@ SaveStateList AccessMetaEngine::listSaves(const char *target) const { Access::AccessSavegameHeader 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) { @@ -167,6 +166,8 @@ SaveStateList AccessMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |