diff --git a/components/esm3/filter.cpp b/components/esm3/filter.cpp index d432f789d3..4c6f56def7 100644 --- a/components/esm3/filter.cpp +++ b/components/esm3/filter.cpp @@ -56,6 +56,7 @@ void Filter::save (ESMWriter& esm, bool isDeleted) const void Filter::blank() { + mRecordFlags = 0; mFilter.clear(); mDescription.clear(); } diff --git a/components/esm3/loadacti.cpp b/components/esm3/loadacti.cpp index a8689bf78c..89b5b85fbd 100644 --- a/components/esm3/loadacti.cpp +++ b/components/esm3/loadacti.cpp @@ -62,6 +62,7 @@ namespace ESM void Activator::blank() { + mRecordFlags = 0; mName.clear(); mScript.clear(); mModel.clear(); diff --git a/components/esm3/loadalch.cpp b/components/esm3/loadalch.cpp index 888e049079..9632e26fd9 100644 --- a/components/esm3/loadalch.cpp +++ b/components/esm3/loadalch.cpp @@ -80,6 +80,7 @@ namespace ESM void Potion::blank() { + mRecordFlags = 0; mData.mWeight = 0; mData.mValue = 0; mData.mAutoCalc = 0; diff --git a/components/esm3/loadappa.cpp b/components/esm3/loadappa.cpp index 8bf87f1e69..009f0bc53f 100644 --- a/components/esm3/loadappa.cpp +++ b/components/esm3/loadappa.cpp @@ -75,6 +75,7 @@ namespace ESM void Apparatus::blank() { + mRecordFlags = 0; mData.mType = 0; mData.mQuality = 0; mData.mWeight = 0; diff --git a/components/esm3/loadarmo.cpp b/components/esm3/loadarmo.cpp index 77cfd2ff39..86e3eb19cd 100644 --- a/components/esm3/loadarmo.cpp +++ b/components/esm3/loadarmo.cpp @@ -115,6 +115,7 @@ namespace ESM void Armor::blank() { + mRecordFlags = 0; mData.mType = 0; mData.mWeight = 0; mData.mValue = 0; diff --git a/components/esm3/loadbody.cpp b/components/esm3/loadbody.cpp index 0275f3a63e..0075c51dd8 100644 --- a/components/esm3/loadbody.cpp +++ b/components/esm3/loadbody.cpp @@ -67,6 +67,7 @@ namespace ESM void BodyPart::blank() { + mRecordFlags = 0; mData.mPart = 0; mData.mVampire = 0; mData.mFlags = 0; diff --git a/components/esm3/loadbook.cpp b/components/esm3/loadbook.cpp index 2845e67622..aef30e650a 100644 --- a/components/esm3/loadbook.cpp +++ b/components/esm3/loadbook.cpp @@ -82,6 +82,7 @@ namespace ESM void Book::blank() { + mRecordFlags = 0; mData.mWeight = 0; mData.mValue = 0; mData.mIsScroll = 0; diff --git a/components/esm3/loadbsgn.cpp b/components/esm3/loadbsgn.cpp index 5be175e72e..f037de5059 100644 --- a/components/esm3/loadbsgn.cpp +++ b/components/esm3/loadbsgn.cpp @@ -69,6 +69,7 @@ namespace ESM void BirthSign::blank() { + mRecordFlags = 0; mName.clear(); mDescription.clear(); mTexture.clear(); diff --git a/components/esm3/loadclas.cpp b/components/esm3/loadclas.cpp index 9b34fbd541..8c12a268a3 100644 --- a/components/esm3/loadclas.cpp +++ b/components/esm3/loadclas.cpp @@ -98,6 +98,7 @@ namespace ESM void Class::blank() { + mRecordFlags = 0; mName.clear(); mDescription.clear(); diff --git a/components/esm3/loadclot.cpp b/components/esm3/loadclot.cpp index ea87d1566b..4267602119 100644 --- a/components/esm3/loadclot.cpp +++ b/components/esm3/loadclot.cpp @@ -88,6 +88,7 @@ namespace ESM void Clothing::blank() { + mRecordFlags = 0; mData.mType = 0; mData.mWeight = 0; mData.mValue = 0; diff --git a/components/esm3/loadcont.cpp b/components/esm3/loadcont.cpp index b74f9f2ba2..83aa3d0935 100644 --- a/components/esm3/loadcont.cpp +++ b/components/esm3/loadcont.cpp @@ -112,6 +112,7 @@ namespace ESM void Container::blank() { + mRecordFlags = 0; mName.clear(); mModel.clear(); mScript.clear(); diff --git a/components/esm3/loadcrea.cpp b/components/esm3/loadcrea.cpp index c9d4e6ad14..ecd58615e1 100644 --- a/components/esm3/loadcrea.cpp +++ b/components/esm3/loadcrea.cpp @@ -138,6 +138,7 @@ namespace ESM void Creature::blank() { + mRecordFlags = 0; mData.mType = 0; mData.mLevel = 0; mData.mStrength = mData.mIntelligence = mData.mWillpower = mData.mAgility = diff --git a/components/esm3/loaddoor.cpp b/components/esm3/loaddoor.cpp index c866fc96c0..7aa6b3a17b 100644 --- a/components/esm3/loaddoor.cpp +++ b/components/esm3/loaddoor.cpp @@ -71,6 +71,7 @@ namespace ESM void Door::blank() { + mRecordFlags = 0; mName.clear(); mModel.clear(); mScript.clear(); diff --git a/components/esm3/loadench.cpp b/components/esm3/loadench.cpp index 533ba154b7..25bf23748e 100644 --- a/components/esm3/loadench.cpp +++ b/components/esm3/loadench.cpp @@ -64,6 +64,7 @@ namespace ESM void Enchantment::blank() { + mRecordFlags = 0; mData.mType = 0; mData.mCost = 0; mData.mCharge = 0; diff --git a/components/esm3/loadfact.cpp b/components/esm3/loadfact.cpp index 513f8c3199..e18d490f9e 100644 --- a/components/esm3/loadfact.cpp +++ b/components/esm3/loadfact.cpp @@ -116,6 +116,7 @@ namespace ESM void Faction::blank() { + mRecordFlags = 0; mName.clear(); mData.mAttribute[0] = mData.mAttribute[1] = 0; mData.mIsHidden = 0; diff --git a/components/esm3/loadglob.cpp b/components/esm3/loadglob.cpp index cc2188a5b5..ea4a4256ee 100644 --- a/components/esm3/loadglob.cpp +++ b/components/esm3/loadglob.cpp @@ -42,6 +42,7 @@ namespace ESM void Global::blank() { + mRecordFlags = 0; mValue.setType (VT_None); } diff --git a/components/esm3/loadgmst.cpp b/components/esm3/loadgmst.cpp index 31439dc268..4a02696948 100644 --- a/components/esm3/loadgmst.cpp +++ b/components/esm3/loadgmst.cpp @@ -25,6 +25,7 @@ namespace ESM void GameSetting::blank() { + mRecordFlags = 0; mValue.setType (VT_None); } diff --git a/components/esm3/loadingr.cpp b/components/esm3/loadingr.cpp index ea10da42b9..f746ff32cf 100644 --- a/components/esm3/loadingr.cpp +++ b/components/esm3/loadingr.cpp @@ -98,6 +98,7 @@ namespace ESM void Ingredient::blank() { + mRecordFlags = 0; mData.mWeight = 0; mData.mValue = 0; for (int i=0; i<4; ++i) diff --git a/components/esm3/loadlevlist.cpp b/components/esm3/loadlevlist.cpp index 51055103bf..d16ab89231 100644 --- a/components/esm3/loadlevlist.cpp +++ b/components/esm3/loadlevlist.cpp @@ -98,6 +98,7 @@ namespace ESM void LevelledListBase::blank() { + mRecordFlags = 0; mFlags = 0; mChanceNone = 0; mList.clear(); diff --git a/components/esm3/loadligh.cpp b/components/esm3/loadligh.cpp index da45674e85..7c9281bbd1 100644 --- a/components/esm3/loadligh.cpp +++ b/components/esm3/loadligh.cpp @@ -78,6 +78,7 @@ namespace ESM void Light::blank() { + mRecordFlags = 0; mData.mWeight = 0; mData.mValue = 0; mData.mTime = 0; diff --git a/components/esm3/loadlock.cpp b/components/esm3/loadlock.cpp index e298001cb6..7d80a77b8a 100644 --- a/components/esm3/loadlock.cpp +++ b/components/esm3/loadlock.cpp @@ -76,6 +76,7 @@ namespace ESM void Lockpick::blank() { + mRecordFlags = 0; mData.mWeight = 0; mData.mValue = 0; mData.mQuality = 0; diff --git a/components/esm3/loadmgef.cpp b/components/esm3/loadmgef.cpp index 5fb88a3606..973acd050c 100644 --- a/components/esm3/loadmgef.cpp +++ b/components/esm3/loadmgef.cpp @@ -578,6 +578,7 @@ MagicEffect::MagnitudeDisplayType MagicEffect::getMagnitudeDisplayType() const { void MagicEffect::blank() { + mRecordFlags = 0; mData.mSchool = 0; mData.mBaseCost = 0; mData.mFlags = 0; diff --git a/components/esm3/loadmisc.cpp b/components/esm3/loadmisc.cpp index db6a050a24..932e3d60a3 100644 --- a/components/esm3/loadmisc.cpp +++ b/components/esm3/loadmisc.cpp @@ -75,6 +75,7 @@ namespace ESM void Miscellaneous::blank() { + mRecordFlags = 0; mData.mWeight = 0; mData.mValue = 0; mData.mIsKey = 0; diff --git a/components/esm3/loadnpc.cpp b/components/esm3/loadnpc.cpp index dc91c5ea0c..117c545b84 100644 --- a/components/esm3/loadnpc.cpp +++ b/components/esm3/loadnpc.cpp @@ -189,6 +189,7 @@ namespace ESM void NPC::blank() { + mRecordFlags = 0; mNpdtType = NPC_DEFAULT; blankNpdt(); mBloodType = 0; diff --git a/components/esm3/loadprob.cpp b/components/esm3/loadprob.cpp index 6299286ea8..3acd68dbd8 100644 --- a/components/esm3/loadprob.cpp +++ b/components/esm3/loadprob.cpp @@ -76,6 +76,7 @@ namespace ESM void Probe::blank() { + mRecordFlags = 0; mData.mWeight = 0; mData.mValue = 0; mData.mQuality = 0; diff --git a/components/esm3/loadrace.cpp b/components/esm3/loadrace.cpp index e2b5a1fcf8..9d2880f1bc 100644 --- a/components/esm3/loadrace.cpp +++ b/components/esm3/loadrace.cpp @@ -81,6 +81,7 @@ namespace ESM void Race::blank() { + mRecordFlags = 0; mName.clear(); mDescription.clear(); diff --git a/components/esm3/loadregn.cpp b/components/esm3/loadregn.cpp index 4f097a5e2b..7af3e532f5 100644 --- a/components/esm3/loadregn.cpp +++ b/components/esm3/loadregn.cpp @@ -106,6 +106,7 @@ namespace ESM void Region::blank() { + mRecordFlags = 0; mData.mClear = mData.mCloudy = mData.mFoggy = mData.mOvercast = mData.mRain = mData.mThunder = mData.mAsh = mData.mBlight = mData.mA = mData.mB = 0; diff --git a/components/esm3/loadrepa.cpp b/components/esm3/loadrepa.cpp index 8d09083cad..26ec851317 100644 --- a/components/esm3/loadrepa.cpp +++ b/components/esm3/loadrepa.cpp @@ -76,6 +76,7 @@ namespace ESM void Repair::blank() { + mRecordFlags = 0; mData.mWeight = 0; mData.mValue = 0; mData.mQuality = 0; diff --git a/components/esm3/loadscpt.cpp b/components/esm3/loadscpt.cpp index 1e5d342fa3..0bb1916370 100644 --- a/components/esm3/loadscpt.cpp +++ b/components/esm3/loadscpt.cpp @@ -181,6 +181,7 @@ namespace ESM void Script::blank() { + mRecordFlags = 0; mData.mNumShorts = mData.mNumLongs = mData.mNumFloats = 0; mData.mScriptDataSize = 0; mData.mStringTableSize = 0; diff --git a/components/esm3/loadskil.cpp b/components/esm3/loadskil.cpp index 86ffda4fd9..98b965398e 100644 --- a/components/esm3/loadskil.cpp +++ b/components/esm3/loadskil.cpp @@ -173,6 +173,7 @@ namespace ESM void Skill::blank() { + mRecordFlags = 0; mData.mAttribute = 0; mData.mSpecialization = 0; mData.mUseValue[0] = mData.mUseValue[1] = mData.mUseValue[2] = mData.mUseValue[3] = 1.0; diff --git a/components/esm3/loadsndg.cpp b/components/esm3/loadsndg.cpp index 9113d1ac3d..90231ebd9b 100644 --- a/components/esm3/loadsndg.cpp +++ b/components/esm3/loadsndg.cpp @@ -67,6 +67,7 @@ namespace ESM void SoundGenerator::blank() { + mRecordFlags = 0; mType = LeftFoot; mCreature.clear(); mSound.clear(); diff --git a/components/esm3/loadsoun.cpp b/components/esm3/loadsoun.cpp index 9904d5d0fb..552132cd8d 100644 --- a/components/esm3/loadsoun.cpp +++ b/components/esm3/loadsoun.cpp @@ -63,6 +63,7 @@ namespace ESM void Sound::blank() { + mRecordFlags = 0; mSound.clear(); mData.mVolume = 128; diff --git a/components/esm3/loadspel.cpp b/components/esm3/loadspel.cpp index bb0c866c5e..eb1f5748e7 100644 --- a/components/esm3/loadspel.cpp +++ b/components/esm3/loadspel.cpp @@ -71,6 +71,7 @@ namespace ESM void Spell::blank() { + mRecordFlags = 0; mData.mType = 0; mData.mCost = 0; mData.mFlags = 0; diff --git a/components/esm3/loadsscr.cpp b/components/esm3/loadsscr.cpp index 3f7a4fe19d..f24b2ef997 100644 --- a/components/esm3/loadsscr.cpp +++ b/components/esm3/loadsscr.cpp @@ -58,6 +58,7 @@ namespace ESM void StartScript::blank() { + mRecordFlags = 0; mData.clear(); } } diff --git a/components/esm3/loadstat.cpp b/components/esm3/loadstat.cpp index cb7c9fa2df..5bd98b086e 100644 --- a/components/esm3/loadstat.cpp +++ b/components/esm3/loadstat.cpp @@ -56,6 +56,7 @@ namespace ESM void Static::blank() { + mRecordFlags = 0; mModel.clear(); } } diff --git a/components/esm3/loadweap.cpp b/components/esm3/loadweap.cpp index 696194f969..e1f63a26c6 100644 --- a/components/esm3/loadweap.cpp +++ b/components/esm3/loadweap.cpp @@ -77,6 +77,7 @@ namespace ESM void Weapon::blank() { + mRecordFlags = 0; mData.mWeight = 0; mData.mValue = 0; mData.mType = 0;