mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 13:09:40 +00:00
Initialize missing struct fields
This commit is contained in:
parent
e5a81b1f99
commit
d5bcc49079
5 changed files with 19 additions and 15 deletions
|
@ -526,7 +526,10 @@ public:
|
||||||
class ConvertGAME : public Converter
|
class ConvertGAME : public Converter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ConvertGAME() : mHasGame(false) {}
|
ConvertGAME()
|
||||||
|
: mHasGame(false)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
virtual void read(ESM::ESMReader &esm)
|
virtual void read(ESM::ESMReader &esm)
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,13 +14,13 @@ namespace ESSImport
|
||||||
{
|
{
|
||||||
struct GMDT
|
struct GMDT
|
||||||
{
|
{
|
||||||
char mCellName[64];
|
char mCellName[64] {};
|
||||||
int mFogColour;
|
int mFogColour {0};
|
||||||
float mFogDensity;
|
float mFogDensity {0.f};
|
||||||
int mCurrentWeather, mNextWeather;
|
int mCurrentWeather {0}, mNextWeather {0};
|
||||||
int mWeatherTransition; // 0-100 transition between weathers, top 3 bytes may be garbage
|
int mWeatherTransition {0}; // 0-100 transition between weathers, top 3 bytes may be garbage
|
||||||
float mTimeOfNextTransition; // weather changes when gamehour == timeOfNextTransition
|
float mTimeOfNextTransition {0.f}; // weather changes when gamehour == timeOfNextTransition
|
||||||
int mMasserPhase, mSecundaPhase; // top 3 bytes may be garbage
|
int mMasserPhase {0}, mSecundaPhase {0}; // top 3 bytes may be garbage
|
||||||
};
|
};
|
||||||
|
|
||||||
GMDT mGMDT;
|
GMDT mGMDT;
|
||||||
|
|
|
@ -1483,7 +1483,8 @@ void OpenAL_Output::resumeSounds(int types)
|
||||||
|
|
||||||
|
|
||||||
OpenAL_Output::OpenAL_Output(SoundManager &mgr)
|
OpenAL_Output::OpenAL_Output(SoundManager &mgr)
|
||||||
: Sound_Output(mgr), mDevice(0), mContext(0)
|
: Sound_Output(mgr)
|
||||||
|
, mDevice(0), mContext(0)
|
||||||
, mListenerPos(0.0f, 0.0f, 0.0f), mListenerEnv(Env_Normal)
|
, mListenerPos(0.0f, 0.0f, 0.0f), mListenerEnv(Env_Normal)
|
||||||
, mWaterFilter(0), mWaterEffect(0), mDefaultEffect(0), mEffectSlot(0)
|
, mWaterFilter(0), mWaterEffect(0), mDefaultEffect(0), mEffectSlot(0)
|
||||||
, mStreamThread(new StreamThread)
|
, mStreamThread(new StreamThread)
|
||||||
|
|
|
@ -26,10 +26,10 @@ namespace MWSound
|
||||||
struct {
|
struct {
|
||||||
bool EXT_EFX : 1;
|
bool EXT_EFX : 1;
|
||||||
bool SOFT_HRTF : 1;
|
bool SOFT_HRTF : 1;
|
||||||
} ALC;
|
} ALC = {false, false};
|
||||||
struct {
|
struct {
|
||||||
bool SOFT_source_spatialize : 1;
|
bool SOFT_source_spatialize : 1;
|
||||||
} AL;
|
} AL = {false};
|
||||||
|
|
||||||
typedef std::deque<ALuint> IDDq;
|
typedef std::deque<ALuint> IDDq;
|
||||||
IDDq mFreeSources;
|
IDDq mFreeSources;
|
||||||
|
|
|
@ -78,14 +78,14 @@ struct Cell
|
||||||
|
|
||||||
struct DATAstruct
|
struct DATAstruct
|
||||||
{
|
{
|
||||||
int mFlags;
|
int mFlags {0};
|
||||||
int mX, mY;
|
int mX {0}, mY {0};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct AMBIstruct
|
struct AMBIstruct
|
||||||
{
|
{
|
||||||
Color mAmbient, mSunlight, mFog;
|
Color mAmbient {0}, mSunlight {0}, mFog {0};
|
||||||
float mFogDensity;
|
float mFogDensity {0.f};
|
||||||
};
|
};
|
||||||
|
|
||||||
Cell() : mName(""),
|
Cell() : mName(""),
|
||||||
|
|
Loading…
Reference in a new issue