diff --git a/cocos/2d/CCParticleSystemQuad.cpp b/cocos/2d/CCParticleSystemQuad.cpp index 6b9cca33f8..4ec6867382 100644 --- a/cocos/2d/CCParticleSystemQuad.cpp +++ b/cocos/2d/CCParticleSystemQuad.cpp @@ -480,7 +480,7 @@ void ParticleSystemQuad::setTotalParticles(int tp) size_t indicesSize = sizeof(_indices[0]) * tp * 6 * 1; _particleData.release(); - if (_particleData.init(tp)) + if (!_particleData.init(tp)) { CCLOG("Particle system: not enough memory"); return;