From 49b5c2058d2fe4d6434b0f99b5acdb5d80edbc21 Mon Sep 17 00:00:00 2001 From: fredb Date: Sun, 2 Mar 2008 16:49:07 +0000 Subject: [PATCH] Initialize variables before using them --- simgear/scene/model/particles.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/scene/model/particles.cxx b/simgear/scene/model/particles.cxx index 246498ad..ac4fc0bb 100644 --- a/simgear/scene/model/particles.cxx +++ b/simgear/scene/model/particles.cxx @@ -265,7 +265,7 @@ osg::Group * Particles::appendParticles(const SGPropertyNode* configNode, osgParticle::RandomRateCounter* counter = new osgParticle::RandomRateCounter; emitter->setCounter(counter); - float pps, spread; + float pps = 0.0f, spread = 0.0f; const SGPropertyNode* ppsnode = counternode->getChild("pps"); if (ppsnode) { -- 2.39.5