diff options
Diffstat (limited to 'engines/sword1/sword1.cpp')
-rw-r--r-- | engines/sword1/sword1.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp index b31df25db5..e57cadcff3 100644 --- a/engines/sword1/sword1.cpp +++ b/engines/sword1/sword1.cpp @@ -90,8 +90,11 @@ void Sword1CheckDirectory(const FSList &fslist, bool *filesFound) { filesFound[cnt] = true; } else { for (int cnt = 0; cnt < ARRAYSIZE(g_dirNames); cnt++) - if (scumm_stricmp(file->displayName().c_str(), g_dirNames[cnt]) == 0) - Sword1CheckDirectory(file->listDir(FilesystemNode::kListFilesOnly), filesFound); + if (scumm_stricmp(file->displayName().c_str(), g_dirNames[cnt]) == 0) { + FSList fslist2; + if (file->listDir(fslist2, FilesystemNode::kListFilesOnly)) + Sword1CheckDirectory(fslist2, filesFound); + } } } } |