Merge pull request #11650 from xiaofeng11/v3.6

Fix a logical bug that may cause null pointer been used
This commit is contained in:
minggo 2015-04-29 16:21:17 +08:00
commit 9586cdf2c8
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ void PositionFrame::onEnter(Frame *nextFrame, int currentFrameIndex)
void PositionFrame::onApply(float percent)
{
if (nullptr != _node && _betweenX != 0 || _betweenY != 0)
if (nullptr != _node && (_betweenX != 0 || _betweenY != 0))
{
Point p;
p.x = _position.x + _betweenX * percent;