]> git.mxchange.org Git - simgear.git/commitdiff
Initialize variables before using them
authorfredb <fredb>
Sun, 2 Mar 2008 16:49:07 +0000 (16:49 +0000)
committerfredb <fredb>
Sun, 2 Mar 2008 16:49:07 +0000 (16:49 +0000)
simgear/scene/model/particles.cxx

index 246498ad33f8cc39ca1cbdef8930bb78be77359a..ac4fc0bbce7e67f34b299961deaab645c952f5f8 100644 (file)
@@ -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) {