Fixed ParticleSystem:clone not duplicating position and area spread properly

This commit is contained in:
Alex Szpakowski
2013-12-28 01:51:50 -04:00
parent 5963e7a9cb
commit 27f36455e8
2 changed files with 2 additions and 3 deletions
@@ -117,7 +117,9 @@ ParticleSystem::ParticleSystem(const ParticleSystem &p)
, activeParticles(0)
, emissionRate(p.emissionRate)
, emitCounter(0.0f)
, position(p.position)
, areaSpreadDistribution(p.areaSpreadDistribution)
, areaSpread(p.areaSpread)
, lifetime(p.lifetime)
, life(p.lifetime) // Initialize with the maximum life time.
, particleLifeMin(p.particleLifeMin)
@@ -516,9 +516,6 @@ protected:
Colorf color;
};
// The max amount of particles.
int bufferSize;
// Pointer to the beginning of the allocated memory.
particle *pMem;