mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 07:09:42 +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:
parent
3d12b2ca9d
commit
6cf2c35235
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ ParticleSystem::ParticleSystem(const ParticleSystem ©, const osg::CopyOp &co
|
||||||
{
|
{
|
||||||
// For some reason the osgParticle constructor doesn't copy the particles
|
// For some reason the osgParticle constructor doesn't copy the particles
|
||||||
for (int i=0;i<copy.numParticles()-copy.numDeadParticles();++i)
|
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)
|
void ParticleSystem::setQuota(int quota)
|
||||||
|
|
Loading…
Reference in a new issue