diff options
-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; } |