Change && to || in conditions judge.

This commit is contained in:
chengstory 2014-03-11 22:02:55 +08:00
parent 86219dd7f4
commit 59aa17ea05
1 changed files with 2 additions and 2 deletions

View File

@ -115,11 +115,11 @@ bool TriggerObj::detect()
return true;
}
bool ret = true;
bool ret = false;
for (const auto& con : _cons)
{
ret = ret && con->detect();
ret = ret || con->detect();
}
return ret;