mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-27 00:40:21 +00:00
Merge branch 'initialize' into 'master'
Explicitly intialize the fields in `ESM4::Cell` that don't have default constructors. See merge request OpenMW/openmw!3027
This commit is contained in:
commit
e952eac501
@ -64,22 +64,22 @@ namespace ESM4
|
||||
{
|
||||
FormId mFormId; // from the header
|
||||
ESM::RefId mId;
|
||||
std::uint32_t mFlags; // from the header, see enum type RecordFlag for details
|
||||
std::uint32_t mFlags = 0; // from the header, see enum type RecordFlag for details
|
||||
|
||||
ESM::RefId mParent; // world formId (for grouping cells), from the loading sequence
|
||||
|
||||
std::string mEditorId;
|
||||
std::string mFullName;
|
||||
std::uint16_t mCellFlags; // TES5 can also be 8 bits
|
||||
std::uint16_t mCellFlags = 0; // TES5 can also be 8 bits
|
||||
|
||||
std::int32_t mX;
|
||||
std::int32_t mY;
|
||||
std::int32_t mX = 0;
|
||||
std::int32_t mY = 0;
|
||||
|
||||
FormId mOwner;
|
||||
FormId mGlobal;
|
||||
FormId mClimate;
|
||||
FormId mWater;
|
||||
float mWaterHeight;
|
||||
float mWaterHeight = 0;
|
||||
|
||||
std::vector<FormId> mRegions;
|
||||
Lighting mLighting;
|
||||
@ -91,9 +91,9 @@ namespace ESM4
|
||||
FormId mAcousticSpace; // FO3/FONV
|
||||
// TES4: 0 = default, 1 = public, 2 = dungeon
|
||||
// FO3/FONV have more types (not sure how they are used, however)
|
||||
std::uint8_t mMusicType;
|
||||
std::uint8_t mMusicType = 0;
|
||||
|
||||
CellGroup* mCellGroup;
|
||||
CellGroup* mCellGroup = nullptr;
|
||||
|
||||
ESM4::ReaderContext mReaderContext;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user