diff --git a/src/modules/graphics/opengl/ParticleSystem.cpp b/src/modules/graphics/opengl/ParticleSystem.cpp index 9365fb73c..5e3647edb 100644 --- a/src/modules/graphics/opengl/ParticleSystem.cpp +++ b/src/modules/graphics/opengl/ParticleSystem.cpp @@ -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) diff --git a/src/modules/graphics/opengl/ParticleSystem.h b/src/modules/graphics/opengl/ParticleSystem.h index cd1139cf7..8e88a4a87 100644 --- a/src/modules/graphics/opengl/ParticleSystem.h +++ b/src/modules/graphics/opengl/ParticleSystem.h @@ -516,9 +516,6 @@ protected: Colorf color; }; - // The max amount of particles. - int bufferSize; - // Pointer to the beginning of the allocated memory. particle *pMem;