mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 12:40:25 +00:00
Init missing variables
This commit is contained in:
parent
aed0da46a9
commit
38042fd7a2
4 changed files with 9 additions and 4 deletions
|
@ -9,6 +9,8 @@ namespace ESSImport
|
||||||
|
|
||||||
void ActorData::load(ESM::ESMReader &esm)
|
void ActorData::load(ESM::ESMReader &esm)
|
||||||
{
|
{
|
||||||
|
blank();
|
||||||
|
|
||||||
if (esm.isNextSub("ACTN"))
|
if (esm.isNextSub("ACTN"))
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -528,6 +528,10 @@ namespace MWWorld
|
||||||
newCell.mAmbi.mSunlight = 0;
|
newCell.mAmbi.mSunlight = 0;
|
||||||
newCell.mAmbi.mFog = 0;
|
newCell.mAmbi.mFog = 0;
|
||||||
newCell.mAmbi.mFogDensity = 0;
|
newCell.mAmbi.mFogDensity = 0;
|
||||||
|
newCell.mCellId.mPaged = true;
|
||||||
|
newCell.mCellId.mIndex.mX = x;
|
||||||
|
newCell.mCellId.mIndex.mY = y;
|
||||||
|
|
||||||
return &mExt.insert(std::make_pair(key, newCell)).first->second;
|
return &mExt.insert(std::make_pair(key, newCell)).first->second;
|
||||||
}
|
}
|
||||||
const ESM::Cell *Store<ESM::Cell>::find(const std::string &id) const
|
const ESM::Cell *Store<ESM::Cell>::find(const std::string &id) const
|
||||||
|
|
|
@ -460,6 +460,7 @@ namespace MWWorld
|
||||||
ESM::GameSetting record;
|
ESM::GameSetting record;
|
||||||
record.mId = params.first;
|
record.mId = params.first;
|
||||||
record.mValue = params.second;
|
record.mValue = params.second;
|
||||||
|
record.mRecordFlags = 0;
|
||||||
mStore.insertStatic(record);
|
mStore.insertStatic(record);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,8 +76,6 @@ namespace fx
|
||||||
MYGUI_RTTI_DERIVED(EditNumber)
|
MYGUI_RTTI_DERIVED(EditNumber)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
EditNumber() : mLastPointerX(0) {}
|
|
||||||
|
|
||||||
void setValue(T value)
|
void setValue(T value)
|
||||||
{
|
{
|
||||||
mValue = value;
|
mValue = value;
|
||||||
|
@ -241,9 +239,9 @@ namespace fx
|
||||||
MyGUI::Widget* mDragger{nullptr};
|
MyGUI::Widget* mDragger{nullptr};
|
||||||
MyGUI::Widget* mFill{nullptr};
|
MyGUI::Widget* mFill{nullptr};
|
||||||
MyGUI::TextBox* mValueLabel{nullptr};
|
MyGUI::TextBox* mValueLabel{nullptr};
|
||||||
T mValue;
|
T mValue{};
|
||||||
|
|
||||||
int mLastPointerX;
|
int mLastPointerX{0};
|
||||||
};
|
};
|
||||||
|
|
||||||
class EditNumberFloat4 : public EditNumber<float, osg::Vec4f> { MYGUI_RTTI_DERIVED(EditNumberFloat4) };
|
class EditNumberFloat4 : public EditNumber<float, osg::Vec4f> { MYGUI_RTTI_DERIVED(EditNumberFloat4) };
|
||||||
|
|
Loading…
Reference in a new issue