aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2010-06-14 14:51:18 +0000
committerEugene Sandulenko2010-06-14 14:51:18 +0000
commite281f2599a8ad608b61be3a7129f951223cad9f6 (patch)
treebeef28ec4248e4698545b0e36f5849b03786544e /engines
parentd59c312b0890d4ad9b97c4cc0280e00fac69d725 (diff)
downloadscummvm-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.cpp2
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 &params);
static void composeFileHashMap(const Common::FSList &fslist, FileMap &allFiles, int depth) {
- if (depth == 0)
+ if (depth <= 0)
return;
if (fslist.empty())