From Roland Smeenk, Added missing initialization to zero of the _carryOver value in

default and copy constructor.
This commit is contained in:
Robert Osfield 2006-07-04 09:18:04 +00:00
parent 62ecea541d
commit f1e7b6d5cb

View File

@ -27,14 +27,16 @@ namespace osgParticle
ConstantRateCounter(): ConstantRateCounter():
Counter(), Counter(),
_minimumNumberOfParticlesToCreate(0), _minimumNumberOfParticlesToCreate(0),
_numberOfParticlesPerSecondToCreate(0) _numberOfParticlesPerSecondToCreate(0),
_carryOver(0)
{ {
} }
ConstantRateCounter(const ConstantRateCounter& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY): ConstantRateCounter(const ConstantRateCounter& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY):
Counter(copy, copyop), Counter(copy, copyop),
_minimumNumberOfParticlesToCreate(copy._minimumNumberOfParticlesToCreate), _minimumNumberOfParticlesToCreate(copy._minimumNumberOfParticlesToCreate),
_numberOfParticlesPerSecondToCreate(copy._numberOfParticlesPerSecondToCreate) _numberOfParticlesPerSecondToCreate(copy._numberOfParticlesPerSecondToCreate),
_carryOver(copy._carryOver)
{ {
} }