mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
added missing initialization and set pointer to NULL after deletion
This commit is contained in:
parent
00513230b3
commit
aece85f02a
2 changed files with 2 additions and 0 deletions
|
|
@ -726,6 +726,7 @@ ParticleEmitter::ParticleEmitter()
|
||||||
mCurBuffSize = 0;
|
mCurBuffSize = 0;
|
||||||
|
|
||||||
mDead = false;
|
mDead = false;
|
||||||
|
mDataBlock = NULL;
|
||||||
|
|
||||||
// ParticleEmitter should be allocated on the client only.
|
// ParticleEmitter should be allocated on the client only.
|
||||||
mNetFlags.set( IsGhost );
|
mNetFlags.set( IsGhost );
|
||||||
|
|
|
||||||
|
|
@ -958,6 +958,7 @@ ShapeBase::~ShapeBase()
|
||||||
if( mShapeInstance && (mShapeInstance->getDebrisRefCount() == 0) )
|
if( mShapeInstance && (mShapeInstance->getDebrisRefCount() == 0) )
|
||||||
{
|
{
|
||||||
delete mShapeInstance;
|
delete mShapeInstance;
|
||||||
|
mShapeInstance = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
CollisionTimeout* ptr = mTimeoutList;
|
CollisionTimeout* ptr = mTimeoutList;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue