From 030871774455aec5368afbc8af757b585aee687a Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 25 Feb 2016 19:55:13 +0100 Subject: CINE: Let listSaves return list sorted on slot numbers. --- engines/cine/detection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/cine') diff --git a/engines/cine/detection.cpp b/engines/cine/detection.cpp index dac7add16b..5e1ffadb1b 100644 --- a/engines/cine/detection.cpp +++ b/engines/cine/detection.cpp @@ -137,7 +137,6 @@ SaveStateList CineMetaEngine::listSaves(const char *target) const { Common::String pattern = target; pattern += ".#"; Common::StringArray filenames = saveFileMan->listSavefiles(pattern); - sort(filenames.begin(), filenames.end()); Common::StringArray::const_iterator file; Common::String filename = target; @@ -169,6 +168,8 @@ SaveStateList CineMetaEngine::listSaves(const char *target) const { delete in; + // Sort saves based on slot number. + Common::sort(saveList.begin(), saveList.end(), SaveStateDescriptorSlotComparator()); return saveList; } -- cgit v1.2.3