diff options
author | Eugene Sandulenko | 2010-06-14 14:51:18 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-06-14 14:51:18 +0000 |
commit | e281f2599a8ad608b61be3a7129f951223cad9f6 (patch) | |
tree | beef28ec4248e4698545b0e36f5849b03786544e /engines | |
parent | d59c312b0890d4ad9b97c4cc0280e00fac69d725 (diff) | |
download | scummvm-rg350-e281f2599a8ad608b61be3a7129f951223cad9f6.tar.gz scummvm-rg350-e281f2599a8ad608b61be3a7129f951223cad9f6.tar.bz2 scummvm-rg350-e281f2599a8ad608b61be3a7129f951223cad9f6.zip |
Implement safeguard for negative depth values in AdvancedDetector.
svn-id: r49655
Diffstat (limited to 'engines')
-rw-r--r-- | engines/advancedDetector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp index f4932a1055..061eec2faf 100644 --- a/engines/advancedDetector.cpp +++ b/engines/advancedDetector.cpp @@ -341,7 +341,7 @@ static void reportUnknown(const Common::FSNode &path, const SizeMD5Map &filesSiz static ADGameDescList detectGameFilebased(const FileMap &allFiles, const ADParams ¶ms); static void composeFileHashMap(const Common::FSList &fslist, FileMap &allFiles, int depth) { - if (depth == 0) + if (depth <= 0) return; if (fslist.empty()) |