diff --git a/lib/checkcondition.cpp b/lib/checkcondition.cpp index 1e02633e9..9b6834aef 100644 --- a/lib/checkcondition.cpp +++ b/lib/checkcondition.cpp @@ -632,8 +632,10 @@ void CheckCondition::multiCondition2() } bool changed = false; for (std::set::const_iterator it = vars.begin(); it != vars.end(); ++it) { - if (isVariableChanged(tok1, tok2, *it, nonlocal, _settings)) + if (isVariableChanged(tok1, tok2, *it, nonlocal, _settings)) { changed = true; + break; + } } if (changed) break;