Merge pull request #14105 from WenhaiLin/v3.9-rc

ParticleSystemQuad:Fixed incorrectly generate errors "Particle system not enough memory"
This commit is contained in:
pandamicro 2015-10-22 10:36:02 +08:00
commit 05b277752c
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; size_t indicesSize = sizeof(_indices[0]) * tp * 6 * 1;
_particleData.release(); _particleData.release();
if (_particleData.init(tp)) if (!_particleData.init(tp))
{ {
CCLOG("Particle system: not enough memory"); CCLOG("Particle system: not enough memory");
return; return;