mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 09:39:56 +00:00
fix uninitialized members in Cell and structures
This commit is contained in:
parent
526fb1b37b
commit
87fac78823
@ -70,15 +70,27 @@ struct Cell
|
|||||||
{
|
{
|
||||||
int mFlags;
|
int mFlags;
|
||||||
int mX, mY;
|
int mX, mY;
|
||||||
|
|
||||||
|
DATAstruct() : mFlags(0), mX(0), mY(0) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct AMBIstruct
|
struct AMBIstruct
|
||||||
{
|
{
|
||||||
Color mAmbient, mSunlight, mFog;
|
Color mAmbient, mSunlight, mFog;
|
||||||
float mFogDensity;
|
float mFogDensity;
|
||||||
|
|
||||||
|
AMBIstruct() : mAmbient(0), mSunlight(0), mFog(0), mFogDensity(0) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
Cell() : mWater(0) {}
|
Cell() : mWater(0),
|
||||||
|
mName(""),
|
||||||
|
mRegion(""),
|
||||||
|
mData(DATAstruct()),
|
||||||
|
mAmbi(AMBIstruct()),
|
||||||
|
mWaterInt(false),
|
||||||
|
mMapColor(0),
|
||||||
|
mRefNumCounter(0)
|
||||||
|
{}
|
||||||
|
|
||||||
// Interior cells are indexed by this (it's the 'id'), for exterior
|
// Interior cells are indexed by this (it's the 'id'), for exterior
|
||||||
// cells it is optional.
|
// cells it is optional.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user