Don't rely on the _particles vector implementation details

This will allow compiling OpenMW with an osgParticle optimization to be pushed to OpenMW/osg.
openmw-38
scrawl 9 years ago
parent 3d12b2ca9d
commit 6cf2c35235

@ -23,7 +23,7 @@ ParticleSystem::ParticleSystem(const ParticleSystem &copy, const osg::CopyOp &co
{
// For some reason the osgParticle constructor doesn't copy the particles
for (int i=0;i<copy.numParticles()-copy.numDeadParticles();++i)
_particles.push_back(*copy.getParticle(i));
createParticle(copy.getParticle(i));
}
void ParticleSystem::setQuota(int quota)

Loading…
Cancel
Save