TOON: Only request actual save slots in listSaves.

This commit is contained in:
Johannes Schickel 2016-01-26 02:45:55 +01:00
parent 0285c5b628
commit eaf590510b

View File

@ -173,7 +173,7 @@ SaveStateList ToonMetaEngine::listSaves(const char *target) const {
Common::SaveFileManager *saveFileMan = g_system->getSavefileManager();
Common::StringArray filenames;
Common::String pattern = target;
pattern += ".???";
pattern += ".###";
filenames = saveFileMan->listSavefiles(pattern);
sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)