Initialize variables before using them
This commit is contained in:
@@ -265,7 +265,7 @@ osg::Group * Particles::appendParticles(const SGPropertyNode* configNode,
|
|||||||
osgParticle::RandomRateCounter* counter
|
osgParticle::RandomRateCounter* counter
|
||||||
= new osgParticle::RandomRateCounter;
|
= new osgParticle::RandomRateCounter;
|
||||||
emitter->setCounter(counter);
|
emitter->setCounter(counter);
|
||||||
float pps, spread;
|
float pps = 0.0f, spread = 0.0f;
|
||||||
const SGPropertyNode* ppsnode = counternode->getChild("pps");
|
const SGPropertyNode* ppsnode = counternode->getChild("pps");
|
||||||
|
|
||||||
if (ppsnode) {
|
if (ppsnode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user