aboutsummaryrefslogtreecommitdiffstats
path: root/src/particle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle.cpp')
-rw-r--r--src/particle.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/particle.cpp b/src/particle.cpp
index a8fab9d..2d92409 100644
--- a/src/particle.cpp
+++ b/src/particle.cpp
@@ -84,12 +84,11 @@ void ParticleSystem::update(entityx::EntityManager &en, entityx::EventManager &e
{
(void)en;
(void)ev;
- (void)dt; // TODO use for time to die
auto& worldSystem = *game::engine.getSystem<WorldSystem>();
- for (auto part = std::begin(parts); part != std::end(parts); part++) {
- auto& p = *part;
+ for (unsigned int i = 0; i < parts.size(); i++) {
+ auto& p = parts[i];
// update timers
p.timeLeft -= dt;