From f1e7b6d5cbe186f4fb47cdc6ba522c91f5846f96 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 4 Jul 2006 09:18:04 +0000 Subject: [PATCH] From Roland Smeenk, Added missing initialization to zero of the _carryOver value in default and copy constructor. --- include/osgParticle/ConstantRateCounter | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/osgParticle/ConstantRateCounter b/include/osgParticle/ConstantRateCounter index 98909f91e..9cd861ac5 100644 --- a/include/osgParticle/ConstantRateCounter +++ b/include/osgParticle/ConstantRateCounter @@ -27,14 +27,16 @@ namespace osgParticle ConstantRateCounter(): Counter(), _minimumNumberOfParticlesToCreate(0), - _numberOfParticlesPerSecondToCreate(0) + _numberOfParticlesPerSecondToCreate(0), + _carryOver(0) { } ConstantRateCounter(const ConstantRateCounter& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY): Counter(copy, copyop), _minimumNumberOfParticlesToCreate(copy._minimumNumberOfParticlesToCreate), - _numberOfParticlesPerSecondToCreate(copy._numberOfParticlesPerSecondToCreate) + _numberOfParticlesPerSecondToCreate(copy._numberOfParticlesPerSecondToCreate), + _carryOver(copy._carryOver) { }