From Roland Smeenk, Added missing initialization to zero of the _carryOver value in
default and copy constructor.
This commit is contained in:
parent
62ecea541d
commit
f1e7b6d5cb
@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user