1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-03 17:54:06 +00:00

Init missing variables

This commit is contained in:
Andrei Kortunov 2022-07-05 17:19:47 +04:00
parent aed0da46a9
commit 38042fd7a2
4 changed files with 9 additions and 4 deletions

View File

@ -9,6 +9,8 @@ namespace ESSImport
void ActorData::load(ESM::ESMReader &esm)
{
blank();
if (esm.isNextSub("ACTN"))
{
/*

View File

@ -528,6 +528,10 @@ namespace MWWorld
newCell.mAmbi.mSunlight = 0;
newCell.mAmbi.mFog = 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;
}
const ESM::Cell *Store<ESM::Cell>::find(const std::string &id) const

View File

@ -460,6 +460,7 @@ namespace MWWorld
ESM::GameSetting record;
record.mId = params.first;
record.mValue = params.second;
record.mRecordFlags = 0;
mStore.insertStatic(record);
}
}

View File

@ -76,8 +76,6 @@ namespace fx
MYGUI_RTTI_DERIVED(EditNumber)
public:
EditNumber() : mLastPointerX(0) {}
void setValue(T value)
{
mValue = value;
@ -241,9 +239,9 @@ namespace fx
MyGUI::Widget* mDragger{nullptr};
MyGUI::Widget* mFill{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) };