added missing initialization and set pointer to NULL after deletion

This commit is contained in:
Thomas Fischer 2013-04-15 18:54:34 +02:00
parent 00513230b3
commit aece85f02a
2 changed files with 2 additions and 0 deletions

View file

@ -726,6 +726,7 @@ ParticleEmitter::ParticleEmitter()
mCurBuffSize = 0;
mDead = false;
mDataBlock = NULL;
// ParticleEmitter should be allocated on the client only.
mNetFlags.set( IsGhost );