mirror of https://github.com/axmolengine/axmol.git
fixed #516 ccactionmanager.cpp L289: 'if (UINT_MAX == i)' modify to 'if (UINT_MAX != i)'
This commit is contained in:
parent
585792f3da
commit
c6cd929dac
|
@ -286,7 +286,7 @@ void CCActionManager::removeAction(cocos2d::CCAction *pAction)
|
||||||
if (pElement)
|
if (pElement)
|
||||||
{
|
{
|
||||||
unsigned int i = ccArrayGetIndexOfObject(pElement->actions, pAction);
|
unsigned int i = ccArrayGetIndexOfObject(pElement->actions, pAction);
|
||||||
if (UINT_MAX == i)
|
if (UINT_MAX != i)
|
||||||
{
|
{
|
||||||
removeActionAtIndex(i, pElement);
|
removeActionAtIndex(i, pElement);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue