diff options
author | Johannes Schickel | 2016-02-25 19:55:13 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | c5c1209edda8afc6223c028bc4eb2ef54fb4c6cc (patch) | |
tree | 3567fc8b50d0291354fe2bb368b4c8b683fea361 /engines/drascula | |
parent | 0170982a53c5b7a620e4ce91ba9a79a2cb4f3fc8 (diff) | |
download | scummvm-rg350-c5c1209edda8afc6223c028bc4eb2ef54fb4c6cc.tar.gz scummvm-rg350-c5c1209edda8afc6223c028bc4eb2ef54fb4c6cc.tar.bz2 scummvm-rg350-c5c1209edda8afc6223c028bc4eb2ef54fb4c6cc.zip |
DRASCULA: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines/drascula')
-rw-r--r-- | engines/drascula/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/drascula/detection.cpp b/engines/drascula/detection.cpp index fbf58faaa1..9a2da1d732 100644 --- a/engines/drascula/detection.cpp +++ b/engines/drascula/detection.cpp @@ -355,7 +355,6 @@ SaveStateList DrasculaMetaEngine::listSaves(const char *target) const { pattern += ".###"; filenames = saveFileMan->listSavefiles(pattern); - sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..) SaveStateList saveList; int slotNum = 0; @@ -378,6 +377,8 @@ SaveStateList DrasculaMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |