AD: Fix infinite loop in cleanupPirated.

svn-id: r52386
This commit is contained in:
Johannes Schickel 2010-08-25 12:03:43 +00:00
parent 15e50a64b8
commit 4135dc7a7c

View File

@ -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