diff options
author | Adrian Frühwirth | 2018-03-26 00:51:34 +0200 |
---|---|---|
committer | Adrian Frühwirth | 2018-03-26 01:07:32 +0200 |
commit | 8ed5969ea1208f3c25fd193dbcdbae9436a7c75d (patch) | |
tree | 867532b4b36a71af3fdc9d0060feb41fa8554200 /engines/prince | |
parent | 77a6a9a30c37f39d1b3eab7ac709456ac8e04cb1 (diff) | |
download | scummvm-rg350-8ed5969ea1208f3c25fd193dbcdbae9436a7c75d.tar.gz scummvm-rg350-8ed5969ea1208f3c25fd193dbcdbae9436a7c75d.tar.bz2 scummvm-rg350-8ed5969ea1208f3c25fd193dbcdbae9436a7c75d.zip |
PRINCE: Let listSaves return list sorted on slot numbers
Diffstat (limited to 'engines/prince')
-rw-r--r-- | engines/prince/detection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/prince/detection.cpp b/engines/prince/detection.cpp index a8fa305332..ce80fe5cab 100644 --- a/engines/prince/detection.cpp +++ b/engines/prince/detection.cpp @@ -188,7 +188,6 @@ SaveStateList PrinceMetaEngine::listSaves(const char *target) const { pattern += ".###"; filenames = saveFileMan->listSavefiles(pattern); - sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..) SaveStateList saveList; for (Common::StringArray::const_iterator filename = filenames.begin(); filename != filenames.end(); filename++) { @@ -224,6 +223,7 @@ SaveStateList PrinceMetaEngine::listSaves(const char *target) const { } } + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |