fix infinite spawners

This commit is contained in:
obneq 2015-04-05 22:02:01 +02:00 committed by est31
parent e0889c6c03
commit 0c792db05c
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}
}