diff --git a/cocos/editor-support/cocostudio/ActionTimeline/CCFrame.cpp b/cocos/editor-support/cocostudio/ActionTimeline/CCFrame.cpp index bcd9c0cbca..dc0595fbf0 100644 --- a/cocos/editor-support/cocostudio/ActionTimeline/CCFrame.cpp +++ b/cocos/editor-support/cocostudio/ActionTimeline/CCFrame.cpp @@ -582,7 +582,7 @@ void EventFrame::setNode(cocos2d::Node* node) void EventFrame::onEnter(Frame *nextFrame, int currentFrameIndex) { - if(_frameIndex<_action->getStartFrame() || _frameIndex>_action->getEndFrame()) + if(_frameIndex < _action->getStartFrame() || _frameIndex > _action->getEndFrame()) return; if(currentFrameIndex >= _frameIndex)