Commit 3bc08422 authored by hybrid's avatar hybrid

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
parent ad62c016
...@@ -33,8 +33,8 @@ CParticleSystemSceneNode::CParticleSystemSceneNode(bool createDefaultEmitter, ...@@ -33,8 +33,8 @@ CParticleSystemSceneNode::CParticleSystemSceneNode(bool createDefaultEmitter,
const core::vector3df& position, const core::vector3df& rotation, const core::vector3df& position, const core::vector3df& rotation,
const core::vector3df& scale) const core::vector3df& scale)
: IParticleSystemSceneNode(parent, mgr, id, position, rotation, scale), : IParticleSystemSceneNode(parent, mgr, id, position, rotation, scale),
Emitter(0), LastEmitTime(0), MaxParticles(0xffff), Buffer(0), Emitter(0), ParticleSize(core::dimension2d<f32>(5.0f, 5.0f)), LastEmitTime(0),
ParticlesAreGlobal(true) MaxParticles(0xffff), Buffer(0), ParticlesAreGlobal(true)
{ {
#ifdef _DEBUG #ifdef _DEBUG
setDebugName("CParticleSystemSceneNode"); setDebugName("CParticleSystemSceneNode");
...@@ -47,8 +47,6 @@ CParticleSystemSceneNode::CParticleSystemSceneNode(bool createDefaultEmitter, ...@@ -47,8 +47,6 @@ CParticleSystemSceneNode::CParticleSystemSceneNode(bool createDefaultEmitter,
setEmitter(e); setEmitter(e);
e->drop(); e->drop();
} }
ParticleSize = size;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment