diff options
Diffstat (limited to 'engines/bbvs/detection.cpp')
-rw-r--r-- | engines/bbvs/detection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/bbvs/detection.cpp b/engines/bbvs/detection.cpp index eb894e9f13..d2da3861bc 100644 --- a/engines/bbvs/detection.cpp +++ b/engines/bbvs/detection.cpp @@ -116,7 +116,6 @@ SaveStateList BbvsMetaEngine::listSaves(const char *target) const { pattern += ".###"; Common::StringArray filenames; filenames = saveFileMan->listSavefiles(pattern.c_str()); - Common::sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..) SaveStateList saveList; for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) { // Obtain the last 3 digits of the filename, since they correspond to the save slot @@ -131,6 +130,8 @@ SaveStateList BbvsMetaEngine::listSaves(const char *target) const { } } } + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |