Initialize some missing fields in constructors

0.6.3
Andrei Kortunov 7 years ago
parent 9667dd051c
commit 359e748c28

@ -387,7 +387,7 @@ private:
OpenAL_SoundStream::OpenAL_SoundStream(ALuint src, DecoderPtr decoder)
: mSource(src), mCurrentBufIdx(0), mFormat(AL_NONE), mSampleRate(0)
, mBufferSize(0), mFrameSize(0), mSilence(0), mDecoder(std::move(decoder))
, mLoudnessAnalyzer(nullptr)
, mLoudnessAnalyzer(nullptr), mIsFinished(true)
{
mBuffers.fill(0);
}

@ -83,7 +83,12 @@ struct Land
struct LandData
{
LandData()
: mDataLoaded(0)
: mHeightOffset(0)
, mMinHeight(0)
, mMaxHeight(0)
, mUnk1(0)
, mUnk2(0)
, mDataLoaded(0)
{
}

@ -36,7 +36,10 @@ struct Pathgrid
Point& operator=(const float[3]);
Point(const float[3]);
Point();
Point(int x, int y, int z) : mX(x), mY(y), mZ(z) {}
Point(int x, int y, int z)
: mX(x), mY(y), mZ(z)
, mAutogenerated(0), mConnectionNum(0), mUnknown(0)
{}
}; // 16 bytes
struct Edge // path grid edge

@ -34,7 +34,9 @@ namespace ESM
ESM::AnimationState mAnimationState;
ObjectState() : mHasCustomState(true), mVersion(0)
ObjectState()
: mHasLocals(0), mEnabled(0), mCount(0)
, mFlags(0), mHasCustomState(true), mVersion(0)
{}
/// @note Does not load the CellRef ID, it should already be loaded before calling this method

@ -24,6 +24,8 @@ namespace ESMTerrain
};
LandObject::LandObject()
: mLand(nullptr)
, mLoadFlags(0)
{
}

@ -61,6 +61,7 @@ QuadTreeNode::QuadTreeNode(QuadTreeNode* parent, ChildDirection direction, float
, mValidBounds(false)
, mSize(size)
, mCenter(center)
, mViewDataMap(nullptr)
{
for (unsigned int i=0; i<4; ++i)
mNeighbours[i] = 0;

@ -8,6 +8,7 @@ namespace Gui
WindowCaption::WindowCaption()
: mLeft(NULL)
, mRight(NULL)
, mClient(NULL)
{
}

Loading…
Cancel
Save