mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 04:45:35 +00:00
fix uninitialized members in Cell and structures
This commit is contained in:
parent
526fb1b37b
commit
87fac78823
1 changed files with 13 additions and 1 deletions
|
@ -70,15 +70,27 @@ struct Cell
|
|||
{
|
||||
int mFlags;
|
||||
int mX, mY;
|
||||
|
||||
DATAstruct() : mFlags(0), mX(0), mY(0) {}
|
||||
};
|
||||
|
||||
struct AMBIstruct
|
||||
{
|
||||
Color mAmbient, mSunlight, mFog;
|
||||
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
|
||||
// cells it is optional.
|
||||
|
|
Loading…
Reference in a new issue