Merge pull request #332 from tdev/beamng

some small patches
This commit is contained in:
SilentMike 2013-04-17 16:48:10 -07:00
commit 57d92d522e
3 changed files with 12 additions and 9 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 );

View file

@ -958,6 +958,7 @@ ShapeBase::~ShapeBase()
if( mShapeInstance && (mShapeInstance->getDebrisRefCount() == 0) )
{
delete mShapeInstance;
mShapeInstance = NULL;
}
CollisionTimeout* ptr = mTimeoutList;