diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/xeen/detection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/detection.cpp b/engines/xeen/detection.cpp index cf033b632f..cc1bdde947 100644 --- a/engines/xeen/detection.cpp +++ b/engines/xeen/detection.cpp @@ -141,7 +141,6 @@ SaveStateList XeenMetaEngine::listSaves(const char *target) const { Xeen::XeenSavegameHeader header; filenames = saveFileMan->listSavefiles(pattern); - sort(filenames.begin(), filenames.end()); // Sort to get the files in numerical order SaveStateList saveList; for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) { @@ -163,6 +162,7 @@ SaveStateList XeenMetaEngine::listSaves(const char *target) const { } } + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } |