diff options
author | Johannes Schickel | 2016-02-25 19:55:14 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-02-25 21:39:45 +0100 |
commit | ce8998760d4a3ae5432158754d50b1d5af7b662f (patch) | |
tree | fdd2bb417318da399e39b9df7b918998f8e85b98 /engines/saga/detection.cpp | |
parent | cb07a1bb1df4f496b9f6cf4eef3d417d0f991e4e (diff) | |
download | scummvm-rg350-ce8998760d4a3ae5432158754d50b1d5af7b662f.tar.gz scummvm-rg350-ce8998760d4a3ae5432158754d50b1d5af7b662f.tar.bz2 scummvm-rg350-ce8998760d4a3ae5432158754d50b1d5af7b662f.zip |
SAGA: Let listSaves return list sorted on slot numbers.
Diffstat (limited to 'engines/saga/detection.cpp')
-rw-r--r-- | engines/saga/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/saga/detection.cpp b/engines/saga/detection.cpp index 13ca63525a..e201612beb 100644 --- a/engines/saga/detection.cpp +++ b/engines/saga/detection.cpp @@ -183,7 +183,6 @@ SaveStateList SagaMetaEngine::listSaves(const char *target) const { pattern += ".s##"; filenames = saveFileMan->listSavefiles(pattern); - sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..) SaveStateList saveList; int slotNum = 0; @@ -203,6 +202,8 @@ SaveStateList SagaMetaEngine::listSaves(const char *target) const { } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |