1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 06:35:30 +00:00

Don't rely on the _particles vector implementation details

This will allow compiling OpenMW with an osgParticle optimization to be pushed to OpenMW/osg.
This commit is contained in:
scrawl 2015-12-02 13:57:42 +01:00
parent 3d12b2ca9d
commit 6cf2c35235

View File

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