mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 13:49:40 +00:00
Initialize some missing fields in constructors
This commit is contained in:
parent
9667dd051c
commit
359e748c28
7 changed files with 18 additions and 4 deletions
|
@ -387,7 +387,7 @@ private:
|
||||||
OpenAL_SoundStream::OpenAL_SoundStream(ALuint src, DecoderPtr decoder)
|
OpenAL_SoundStream::OpenAL_SoundStream(ALuint src, DecoderPtr decoder)
|
||||||
: mSource(src), mCurrentBufIdx(0), mFormat(AL_NONE), mSampleRate(0)
|
: mSource(src), mCurrentBufIdx(0), mFormat(AL_NONE), mSampleRate(0)
|
||||||
, mBufferSize(0), mFrameSize(0), mSilence(0), mDecoder(std::move(decoder))
|
, mBufferSize(0), mFrameSize(0), mSilence(0), mDecoder(std::move(decoder))
|
||||||
, mLoudnessAnalyzer(nullptr)
|
, mLoudnessAnalyzer(nullptr), mIsFinished(true)
|
||||||
{
|
{
|
||||||
mBuffers.fill(0);
|
mBuffers.fill(0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,12 @@ struct Land
|
||||||
struct LandData
|
struct LandData
|
||||||
{
|
{
|
||||||
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& operator=(const float[3]);
|
||||||
Point(const float[3]);
|
Point(const float[3]);
|
||||||
Point();
|
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
|
}; // 16 bytes
|
||||||
|
|
||||||
struct Edge // path grid edge
|
struct Edge // path grid edge
|
||||||
|
|
|
@ -34,7 +34,9 @@ namespace ESM
|
||||||
|
|
||||||
ESM::AnimationState mAnimationState;
|
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
|
/// @note Does not load the CellRef ID, it should already be loaded before calling this method
|
||||||
|
|
|
@ -24,6 +24,8 @@ namespace ESMTerrain
|
||||||
};
|
};
|
||||||
|
|
||||||
LandObject::LandObject()
|
LandObject::LandObject()
|
||||||
|
: mLand(nullptr)
|
||||||
|
, mLoadFlags(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,7 @@ QuadTreeNode::QuadTreeNode(QuadTreeNode* parent, ChildDirection direction, float
|
||||||
, mValidBounds(false)
|
, mValidBounds(false)
|
||||||
, mSize(size)
|
, mSize(size)
|
||||||
, mCenter(center)
|
, mCenter(center)
|
||||||
|
, mViewDataMap(nullptr)
|
||||||
{
|
{
|
||||||
for (unsigned int i=0; i<4; ++i)
|
for (unsigned int i=0; i<4; ++i)
|
||||||
mNeighbours[i] = 0;
|
mNeighbours[i] = 0;
|
||||||
|
|
|
@ -8,6 +8,7 @@ namespace Gui
|
||||||
WindowCaption::WindowCaption()
|
WindowCaption::WindowCaption()
|
||||||
: mLeft(NULL)
|
: mLeft(NULL)
|
||||||
, mRight(NULL)
|
, mRight(NULL)
|
||||||
|
, mClient(NULL)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue