mirror of https://github.com/axmolengine/axmol.git
Merge pull request #5686 from chengstory/ChangeConditionJudgeRule
Fix a logical error in 'TriggerObj::detect()'.
This commit is contained in:
commit
675a821189
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue