diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-18 16:13:13 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-18 16:13:13 (GMT) |
| commit | 9b2433f9122d6747327ab3437fa48fbf9f1802ec (patch) | |
| tree | 5d9712513032095e2cc685787d21455850b7b505 /src/simulation/Simulation.cpp | |
| parent | 7018e46fac29ba41398dc49b069aa9aeaa37b04d (diff) | |
| download | powder-9b2433f9122d6747327ab3437fa48fbf9f1802ec.zip powder-9b2433f9122d6747327ab3437fa48fbf9f1802ec.tar.gz | |
Fix typo
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index ebc0fed..0f9e4b9 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; |
