This commit is contained in:
Simon Robertshaw 2012-08-18 17:13:13 +01:00
parent 7018e46fac
commit 9b2433f912

View File

@ -3352,7 +3352,7 @@ void Simulation::update_particles_i(int start, int inc)
if (parts[i].type) if (parts[i].type)
{ {
t = 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); kill_part(i);
continue; continue;