mirror of https://github.com/axmolengine/axmol.git
Change && to || in conditions judge.
This commit is contained in:
parent
86219dd7f4
commit
59aa17ea05
|
@ -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