Properly initialize particle system in the init list.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1800 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2008-11-21 15:08:40 +00:00
parent ad62c01608
commit 3bc084229e
1 changed files with 2 additions and 4 deletions

View File

@ -33,8 +33,8 @@ CParticleSystemSceneNode::CParticleSystemSceneNode(bool createDefaultEmitter,
const core::vector3df& position, const core::vector3df& rotation,
const core::vector3df& scale)
: IParticleSystemSceneNode(parent, mgr, id, position, rotation, scale),
Emitter(0), LastEmitTime(0), MaxParticles(0xffff), Buffer(0),
ParticlesAreGlobal(true)
Emitter(0), ParticleSize(core::dimension2d<f32>(5.0f, 5.0f)), LastEmitTime(0),
MaxParticles(0xffff), Buffer(0), ParticlesAreGlobal(true)
{
#ifdef _DEBUG
setDebugName("CParticleSystemSceneNode");
@ -47,8 +47,6 @@ CParticleSystemSceneNode::CParticleSystemSceneNode(bool createDefaultEmitter,
setEmitter(e);
e->drop();
}
ParticleSize = size;
}