Fix compiler warnings for particles.cpp