Fixed|Particles: Out-of-bounds memory access

Apparently spinIndex was sometimes incorrectly calculated on
p_particle.cpp:794.