aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/detection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wage/detection.cpp')
-rw-r--r--engines/wage/detection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wage/detection.cpp b/engines/wage/detection.cpp
index 8f1b623aff..976ec0fee6 100644
--- a/engines/wage/detection.cpp
+++ b/engines/wage/detection.cpp
@@ -138,7 +138,7 @@ bool WageMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGame
SaveStateList WageMetaEngine::listSaves(const char *target) const {
const uint32 WAGEflag = MKTAG('W','A','G','E');
Common::SaveFileManager *saveFileMan = g_system->getSavefileManager();
- Common::StringList filenames;
+ Common::StringArray filenames;
char saveDesc[31];
Common::String pattern = target;
pattern += ".???";
@@ -147,7 +147,7 @@ SaveStateList WageMetaEngine::listSaves(const char *target) const {
sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)
SaveStateList saveList;
- for (Common::StringList::const_iterator file = filenames.begin(); file != filenames.end(); ++file) {
+ 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
int slotNum = atoi(file->c_str() + file->size() - 3);