aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/particles.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/particles.cpp b/src/particles.cpp
index b13e904b0..15e2a6597 100644
--- a/src/particles.cpp
+++ b/src/particles.cpp
@@ -308,7 +308,7 @@ void ParticleSpawner::step(float dtime, ClientEnvironment* env)
*(m_maxsize-m_minsize)
+m_minsize;
- new Particle(
+ Particle* toadd = new Particle(
m_gamedef,
m_smgr,
m_player,
@@ -323,6 +323,7 @@ void ParticleSpawner::step(float dtime, ClientEnvironment* env)
m_texture,
v2f(0.0, 0.0),
v2f(1.0, 1.0));
+ m_particlemanager->addParticle(toadd);
}
}
}