fixed some warnings
Merge pull request #3171 from ZappoMan/fixeParticleServerCrash

fixed some warnings - fix potential crash in particle server