From c6cd929daca630083af5c29f6055e6dad7068e30 Mon Sep 17 00:00:00 2001 From: liswei Date: Wed, 15 Jun 2011 09:56:33 +0800 Subject: [PATCH] fixed #516 ccactionmanager.cpp L289: 'if (UINT_MAX == i)' modify to 'if (UINT_MAX != i)' --- cocos2dx/actions/CCActionManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }