Initialize variables before using them

This commit is contained in:
fredb
2008-03-02 16:49:07 +00:00
parent 21df21b144
commit 49b5c2058d

View 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) {