uninitialized variables-t3d

This commit is contained in:
AzaezelX 2020-05-11 15:30:21 -05:00
parent 87603029db
commit fabd5864fa
27 changed files with 102 additions and 23 deletions

View file

@ -157,6 +157,9 @@ DebrisData::DebrisData(const DebrisData& other, bool temp_clone) : GameBaseData(
explosion = other.explosion;
dMemcpy( emitterList, other.emitterList, sizeof( emitterList ) );
dMemcpy( emitterIDList, other.emitterIDList, sizeof( emitterIDList ) ); // -- for pack/unpack of emitterList ptrs
mShatter = other.mShatter;
mProbBreak = other.mProbBreak;
mProbDepth = other.mProbDepth;
}
DebrisData::~DebrisData()
@ -533,6 +536,8 @@ Debris::Debris()
mInitialTrans.identity();
mRadius = 0.2f;
mStatic = false;
mElasticity = 0.5f;
mFriction = 0.5f;
dMemset( mEmitterList, 0, sizeof( mEmitterList ) );