mirror of https://github.com/axmolengine/axmol.git
fix Null pointer access
This commit is contained in:
parent
87a15d1089
commit
cec80e62ef
|
@ -185,7 +185,11 @@ void CCBAnimationManager::setDelegate(CCBAnimationManagerDelegate *pDelegate)
|
|||
|
||||
const char* CCBAnimationManager::getRunningSequenceName()
|
||||
{
|
||||
return mRunningSequence->getName();
|
||||
if (mRunningSequence)
|
||||
{
|
||||
return mRunningSequence->getName();
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const CCSize& CCBAnimationManager::getContainerSize(CCNode *pNode)
|
||||
|
|
Loading…
Reference in New Issue