From 9b2433f9122d6747327ab3437fa48fbf9f1802ec Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sat, 18 Aug 2012 17:13:13 +0100 Subject: [PATCH] Fix typo --- src/simulation/Simulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index ebc0fedb1..0f9e4b979 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -3352,7 +3352,7 @@ void Simulation::update_particles_i(int start, int inc) if (parts[i].type) { t = parts[i].type; - if (t<0 || t>=PT_NUM || !elements[i].Enabled) + if (t<0 || t>=PT_NUM || !elements[t].Enabled) { kill_part(i); continue;