Skip to content

Commit 0c792db

Browse files
obneqest31
obneq
authored andcommittedApr 18, 2015
fix infinite spawners
1 parent e0889c6 commit 0c792db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

Diff for: ‎src/particles.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ void ParticleSpawner::step(float dtime, ClientEnvironment* env)
308308
*(m_maxsize-m_minsize)
309309
+m_minsize;
310310

311-
new Particle(
311+
Particle* toadd = new Particle(
312312
m_gamedef,
313313
m_smgr,
314314
m_player,
@@ -323,6 +323,7 @@ void ParticleSpawner::step(float dtime, ClientEnvironment* env)
323323
m_texture,
324324
v2f(0.0, 0.0),
325325
v2f(1.0, 1.0));
326+
m_particlemanager->addParticle(toadd);
326327
}
327328
}
328329
}

0 commit comments

Comments
 (0)
Please sign in to comment.