0 initialize mRecordFlags

fix/shrink_builds
Evil Eye 3 years ago
parent e46fb48a2f
commit bb495bffeb

@ -56,6 +56,7 @@ void Filter::save (ESMWriter& esm, bool isDeleted) const
void Filter::blank() void Filter::blank()
{ {
mRecordFlags = 0;
mFilter.clear(); mFilter.clear();
mDescription.clear(); mDescription.clear();
} }

@ -62,6 +62,7 @@ namespace ESM
void Activator::blank() void Activator::blank()
{ {
mRecordFlags = 0;
mName.clear(); mName.clear();
mScript.clear(); mScript.clear();
mModel.clear(); mModel.clear();

@ -80,6 +80,7 @@ namespace ESM
void Potion::blank() void Potion::blank()
{ {
mRecordFlags = 0;
mData.mWeight = 0; mData.mWeight = 0;
mData.mValue = 0; mData.mValue = 0;
mData.mAutoCalc = 0; mData.mAutoCalc = 0;

@ -75,6 +75,7 @@ namespace ESM
void Apparatus::blank() void Apparatus::blank()
{ {
mRecordFlags = 0;
mData.mType = 0; mData.mType = 0;
mData.mQuality = 0; mData.mQuality = 0;
mData.mWeight = 0; mData.mWeight = 0;

@ -115,6 +115,7 @@ namespace ESM
void Armor::blank() void Armor::blank()
{ {
mRecordFlags = 0;
mData.mType = 0; mData.mType = 0;
mData.mWeight = 0; mData.mWeight = 0;
mData.mValue = 0; mData.mValue = 0;

@ -67,6 +67,7 @@ namespace ESM
void BodyPart::blank() void BodyPart::blank()
{ {
mRecordFlags = 0;
mData.mPart = 0; mData.mPart = 0;
mData.mVampire = 0; mData.mVampire = 0;
mData.mFlags = 0; mData.mFlags = 0;

@ -82,6 +82,7 @@ namespace ESM
void Book::blank() void Book::blank()
{ {
mRecordFlags = 0;
mData.mWeight = 0; mData.mWeight = 0;
mData.mValue = 0; mData.mValue = 0;
mData.mIsScroll = 0; mData.mIsScroll = 0;

@ -69,6 +69,7 @@ namespace ESM
void BirthSign::blank() void BirthSign::blank()
{ {
mRecordFlags = 0;
mName.clear(); mName.clear();
mDescription.clear(); mDescription.clear();
mTexture.clear(); mTexture.clear();

@ -98,6 +98,7 @@ namespace ESM
void Class::blank() void Class::blank()
{ {
mRecordFlags = 0;
mName.clear(); mName.clear();
mDescription.clear(); mDescription.clear();

@ -88,6 +88,7 @@ namespace ESM
void Clothing::blank() void Clothing::blank()
{ {
mRecordFlags = 0;
mData.mType = 0; mData.mType = 0;
mData.mWeight = 0; mData.mWeight = 0;
mData.mValue = 0; mData.mValue = 0;

@ -112,6 +112,7 @@ namespace ESM
void Container::blank() void Container::blank()
{ {
mRecordFlags = 0;
mName.clear(); mName.clear();
mModel.clear(); mModel.clear();
mScript.clear(); mScript.clear();

@ -138,6 +138,7 @@ namespace ESM
void Creature::blank() void Creature::blank()
{ {
mRecordFlags = 0;
mData.mType = 0; mData.mType = 0;
mData.mLevel = 0; mData.mLevel = 0;
mData.mStrength = mData.mIntelligence = mData.mWillpower = mData.mAgility = mData.mStrength = mData.mIntelligence = mData.mWillpower = mData.mAgility =

@ -71,6 +71,7 @@ namespace ESM
void Door::blank() void Door::blank()
{ {
mRecordFlags = 0;
mName.clear(); mName.clear();
mModel.clear(); mModel.clear();
mScript.clear(); mScript.clear();

@ -64,6 +64,7 @@ namespace ESM
void Enchantment::blank() void Enchantment::blank()
{ {
mRecordFlags = 0;
mData.mType = 0; mData.mType = 0;
mData.mCost = 0; mData.mCost = 0;
mData.mCharge = 0; mData.mCharge = 0;

@ -116,6 +116,7 @@ namespace ESM
void Faction::blank() void Faction::blank()
{ {
mRecordFlags = 0;
mName.clear(); mName.clear();
mData.mAttribute[0] = mData.mAttribute[1] = 0; mData.mAttribute[0] = mData.mAttribute[1] = 0;
mData.mIsHidden = 0; mData.mIsHidden = 0;

@ -42,6 +42,7 @@ namespace ESM
void Global::blank() void Global::blank()
{ {
mRecordFlags = 0;
mValue.setType (VT_None); mValue.setType (VT_None);
} }

@ -25,6 +25,7 @@ namespace ESM
void GameSetting::blank() void GameSetting::blank()
{ {
mRecordFlags = 0;
mValue.setType (VT_None); mValue.setType (VT_None);
} }

@ -98,6 +98,7 @@ namespace ESM
void Ingredient::blank() void Ingredient::blank()
{ {
mRecordFlags = 0;
mData.mWeight = 0; mData.mWeight = 0;
mData.mValue = 0; mData.mValue = 0;
for (int i=0; i<4; ++i) for (int i=0; i<4; ++i)

@ -98,6 +98,7 @@ namespace ESM
void LevelledListBase::blank() void LevelledListBase::blank()
{ {
mRecordFlags = 0;
mFlags = 0; mFlags = 0;
mChanceNone = 0; mChanceNone = 0;
mList.clear(); mList.clear();

@ -78,6 +78,7 @@ namespace ESM
void Light::blank() void Light::blank()
{ {
mRecordFlags = 0;
mData.mWeight = 0; mData.mWeight = 0;
mData.mValue = 0; mData.mValue = 0;
mData.mTime = 0; mData.mTime = 0;

@ -76,6 +76,7 @@ namespace ESM
void Lockpick::blank() void Lockpick::blank()
{ {
mRecordFlags = 0;
mData.mWeight = 0; mData.mWeight = 0;
mData.mValue = 0; mData.mValue = 0;
mData.mQuality = 0; mData.mQuality = 0;

@ -578,6 +578,7 @@ MagicEffect::MagnitudeDisplayType MagicEffect::getMagnitudeDisplayType() const {
void MagicEffect::blank() void MagicEffect::blank()
{ {
mRecordFlags = 0;
mData.mSchool = 0; mData.mSchool = 0;
mData.mBaseCost = 0; mData.mBaseCost = 0;
mData.mFlags = 0; mData.mFlags = 0;

@ -75,6 +75,7 @@ namespace ESM
void Miscellaneous::blank() void Miscellaneous::blank()
{ {
mRecordFlags = 0;
mData.mWeight = 0; mData.mWeight = 0;
mData.mValue = 0; mData.mValue = 0;
mData.mIsKey = 0; mData.mIsKey = 0;

@ -189,6 +189,7 @@ namespace ESM
void NPC::blank() void NPC::blank()
{ {
mRecordFlags = 0;
mNpdtType = NPC_DEFAULT; mNpdtType = NPC_DEFAULT;
blankNpdt(); blankNpdt();
mBloodType = 0; mBloodType = 0;

@ -76,6 +76,7 @@ namespace ESM
void Probe::blank() void Probe::blank()
{ {
mRecordFlags = 0;
mData.mWeight = 0; mData.mWeight = 0;
mData.mValue = 0; mData.mValue = 0;
mData.mQuality = 0; mData.mQuality = 0;

@ -81,6 +81,7 @@ namespace ESM
void Race::blank() void Race::blank()
{ {
mRecordFlags = 0;
mName.clear(); mName.clear();
mDescription.clear(); mDescription.clear();

@ -106,6 +106,7 @@ namespace ESM
void Region::blank() void Region::blank()
{ {
mRecordFlags = 0;
mData.mClear = mData.mCloudy = mData.mFoggy = mData.mOvercast = mData.mRain = mData.mClear = mData.mCloudy = mData.mFoggy = mData.mOvercast = mData.mRain =
mData.mThunder = mData.mAsh = mData.mBlight = mData.mA = mData.mB = 0; mData.mThunder = mData.mAsh = mData.mBlight = mData.mA = mData.mB = 0;

@ -76,6 +76,7 @@ namespace ESM
void Repair::blank() void Repair::blank()
{ {
mRecordFlags = 0;
mData.mWeight = 0; mData.mWeight = 0;
mData.mValue = 0; mData.mValue = 0;
mData.mQuality = 0; mData.mQuality = 0;

@ -181,6 +181,7 @@ namespace ESM
void Script::blank() void Script::blank()
{ {
mRecordFlags = 0;
mData.mNumShorts = mData.mNumLongs = mData.mNumFloats = 0; mData.mNumShorts = mData.mNumLongs = mData.mNumFloats = 0;
mData.mScriptDataSize = 0; mData.mScriptDataSize = 0;
mData.mStringTableSize = 0; mData.mStringTableSize = 0;

@ -173,6 +173,7 @@ namespace ESM
void Skill::blank() void Skill::blank()
{ {
mRecordFlags = 0;
mData.mAttribute = 0; mData.mAttribute = 0;
mData.mSpecialization = 0; mData.mSpecialization = 0;
mData.mUseValue[0] = mData.mUseValue[1] = mData.mUseValue[2] = mData.mUseValue[3] = 1.0; mData.mUseValue[0] = mData.mUseValue[1] = mData.mUseValue[2] = mData.mUseValue[3] = 1.0;

@ -67,6 +67,7 @@ namespace ESM
void SoundGenerator::blank() void SoundGenerator::blank()
{ {
mRecordFlags = 0;
mType = LeftFoot; mType = LeftFoot;
mCreature.clear(); mCreature.clear();
mSound.clear(); mSound.clear();

@ -63,6 +63,7 @@ namespace ESM
void Sound::blank() void Sound::blank()
{ {
mRecordFlags = 0;
mSound.clear(); mSound.clear();
mData.mVolume = 128; mData.mVolume = 128;

@ -71,6 +71,7 @@ namespace ESM
void Spell::blank() void Spell::blank()
{ {
mRecordFlags = 0;
mData.mType = 0; mData.mType = 0;
mData.mCost = 0; mData.mCost = 0;
mData.mFlags = 0; mData.mFlags = 0;

@ -58,6 +58,7 @@ namespace ESM
void StartScript::blank() void StartScript::blank()
{ {
mRecordFlags = 0;
mData.clear(); mData.clear();
} }
} }

@ -56,6 +56,7 @@ namespace ESM
void Static::blank() void Static::blank()
{ {
mRecordFlags = 0;
mModel.clear(); mModel.clear();
} }
} }

@ -77,6 +77,7 @@ namespace ESM
void Weapon::blank() void Weapon::blank()
{ {
mRecordFlags = 0;
mData.mWeight = 0; mData.mWeight = 0;
mData.mValue = 0; mData.mValue = 0;
mData.mType = 0; mData.mType = 0;

Loading…
Cancel
Save