From b12fac29582fb35cf0cf0cdcf1924309b5ae940b Mon Sep 17 00:00:00 2001 From: Ming Date: Mon, 6 Sep 2010 02:04:28 +0000 Subject: [PATCH] issue #61: --- cocos2dx/particle_nodes/CCParticleSystem.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);