@@ -726,6 +726,7 @@ ParticleEmitter::ParticleEmitter()
mCurBuffSize = 0;
mDead = false;
+ mDataBlock = NULL;
// ParticleEmitter should be allocated on the client only.
mNetFlags.set( IsGhost );
@@ -958,6 +958,7 @@ ShapeBase::~ShapeBase()
if( mShapeInstance && (mShapeInstance->getDebrisRefCount() == 0) )
{
delete mShapeInstance;
+ mShapeInstance = NULL;
}
CollisionTimeout* ptr = mTimeoutList;