From: fredb Date: Sun, 2 Mar 2008 16:49:07 +0000 (+0000) Subject: Initialize variables before using them X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=49b5c2058d2fe4d6434b0f99b5acdb5d80edbc21;p=simgear.git Initialize variables before using them --- 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) {