diff options
author | Johannes Schickel | 2016-02-25 19:55:14 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | 525e5edd300cd5c717da0c7359411653352ea8d0 (patch) | |
tree | f825d4310a12967cc7bd390324da8fe6eab71c22 /engines | |
parent | 0b93e1b0047497018125bcef98ac03e38d91ec26 (diff) | |
download | scummvm-rg350-525e5edd300cd5c717da0c7359411653352ea8d0.tar.gz scummvm-rg350-525e5edd300cd5c717da0c7359411653352ea8d0.tar.bz2 scummvm-rg350-525e5edd300cd5c717da0c7359411653352ea8d0.zip |
TEENAGENT: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/teenagent/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/teenagent/detection.cpp b/engines/teenagent/detection.cpp index 4fd3a06311..cefc1a89d3 100644 --- a/engines/teenagent/detection.cpp +++ b/engines/teenagent/detection.cpp @@ -128,7 +128,6 @@ public: pattern += ".##"; Common::StringArray filenames = g_system->getSavefileManager()->listSavefiles(pattern); - Common::sort(filenames.begin(), filenames.end()); SaveStateList saveList; for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) { @@ -145,6 +144,8 @@ public: saveList.push_back(SaveStateDescriptor(slot, buf)); } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |