ParticleSystemQuad:Fixed incorrectly generate errors "Particle system: not enough memory"

This commit is contained in:
WenhaiLin 2015-10-10 17:55:05 +08:00
parent fe4759e71d
commit 05c235f9fe
1 changed files with 1 additions and 1 deletions

View File

@ -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;