Fix a logical bug that may cause null pointer been used

This commit is contained in:
XiaoFeng 2015-04-29 15:58:44 +08:00
parent 49b465f0f4
commit 9d0741544c
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;