diff --git a/cocos2dx/actions/CCActionManager.cpp b/cocos2dx/actions/CCActionManager.cpp index a46deed4e5..27a2b64b8a 100644 --- a/cocos2dx/actions/CCActionManager.cpp +++ b/cocos2dx/actions/CCActionManager.cpp @@ -286,7 +286,7 @@ void CCActionManager::removeAction(cocos2d::CCAction *pAction) if (pElement) { unsigned int i = ccArrayGetIndexOfObject(pElement->actions, pAction); - if (UINT_MAX == i) + if (UINT_MAX != i) { removeActionAtIndex(i, pElement); }