Fix crash in particle system.

3 jobs for develop in 13 minutes and 46 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #9095
build-clang

00:03:16

passed #9094
build-gcc

00:03:47

passed #9096
build-scanbuild

00:06:42