diff --git a/cocos2dx/particle_nodes/CCParticleSystem.cpp b/cocos2dx/particle_nodes/CCParticleSystem.cpp index 1efd505d88..4f93b96864 100644 --- a/cocos2dx/particle_nodes/CCParticleSystem.cpp +++ b/cocos2dx/particle_nodes/CCParticleSystem.cpp @@ -253,7 +253,9 @@ namespace cocos2d { } } NSAssert( this->m_pTexture != NULL, "CCParticleSystem: error loading the texture"); + CCX_BREAK_IF(!m_pTexture); + this->m_pTexture->retain(); bRet = true; } } while (0);