mirror of https://github.com/axmolengine/axmol.git
Merge pull request #11650 from xiaofeng11/v3.6
Fix a logical bug that may cause null pointer been used
This commit is contained in:
commit
9586cdf2c8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue