aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2010-08-25 12:03:43 +0000
committerJohannes Schickel2010-08-25 12:03:43 +0000
commit4135dc7a7c7584f38404d8f859a3258fa08e0475 (patch)
tree73adb8129a5c0f09dc9d99d8a4eca86b5885de86 /engines
parent15e50a64b8c4cb09f3e43c81cc1bd7e16b9a0335 (diff)
downloadscummvm-rg350-4135dc7a7c7584f38404d8f859a3258fa08e0475.tar.gz
scummvm-rg350-4135dc7a7c7584f38404d8f859a3258fa08e0475.tar.bz2
scummvm-rg350-4135dc7a7c7584f38404d8f859a3258fa08e0475.zip
AD: Fix infinite loop in cleanupPirated.
svn-id: r52386
Diffstat (limited to 'engines')
-rw-r--r--engines/advancedDetector.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index 70d08d1035..46ecc03767 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -220,6 +220,8 @@ bool cleanupPirated(ADGameDescList &matched) {
for (uint j = 0; j < matched.size();) {
if (matched[j]->flags & ADGF_PIRATED)
matched.remove_at(j);
+ else
+ ++j;
}
// We ruled out all variants and now have nothing