forked from mirror/openmw-tes3mp
fix uninitialized pointer variables in some classes
This commit is contained in:
parent
a5245d5a13
commit
db38108801
4 changed files with 9 additions and 1 deletions
|
@ -39,6 +39,8 @@ namespace MWGui
|
||||||
, mPreviewDirty(true)
|
, mPreviewDirty(true)
|
||||||
, mPreviewResize(true)
|
, mPreviewResize(true)
|
||||||
, mDragAndDrop(dragAndDrop)
|
, mDragAndDrop(dragAndDrop)
|
||||||
|
, mSortModel(NULL)
|
||||||
|
, mTradeModel(NULL)
|
||||||
, mSelectedItem(-1)
|
, mSelectedItem(-1)
|
||||||
, mGuiMode(GM_Inventory)
|
, mGuiMode(GM_Inventory)
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,6 +29,7 @@ namespace MWGui
|
||||||
, mButtonBox(0), mWidth (w), mHeight (h)
|
, mButtonBox(0), mWidth (w), mHeight (h)
|
||||||
, mSaveGameDialog(NULL)
|
, mSaveGameDialog(NULL)
|
||||||
, mBackground(NULL)
|
, mBackground(NULL)
|
||||||
|
, mVideoBackground(NULL)
|
||||||
, mVideo(NULL)
|
, mVideo(NULL)
|
||||||
{
|
{
|
||||||
getWidget(mVersionText, "VersionText");
|
getWidget(mVersionText, "VersionText");
|
||||||
|
@ -43,7 +44,7 @@ namespace MWGui
|
||||||
rev = rev.substr(0,10);
|
rev = rev.substr(0,10);
|
||||||
sstream << "\nRevision: " << rev;
|
sstream << "\nRevision: " << rev;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string output = sstream.str();
|
std::string output = sstream.str();
|
||||||
mVersionText->setCaption(output);
|
mVersionText->setCaption(output);
|
||||||
|
|
||||||
|
|
|
@ -447,8 +447,12 @@ namespace MWGui
|
||||||
|
|
||||||
EffectEditorBase::EffectEditorBase(Type type)
|
EffectEditorBase::EffectEditorBase(Type type)
|
||||||
: mAddEffectDialog()
|
: mAddEffectDialog()
|
||||||
|
, mAvailableEffectsList(NULL)
|
||||||
|
, mUsedEffectsView(NULL)
|
||||||
, mSelectAttributeDialog(NULL)
|
, mSelectAttributeDialog(NULL)
|
||||||
, mSelectSkillDialog(NULL)
|
, mSelectSkillDialog(NULL)
|
||||||
|
, mSelectedEffect(0)
|
||||||
|
, mSelectedKnownEffectId(0)
|
||||||
, mType(type)
|
, mType(type)
|
||||||
{
|
{
|
||||||
mAddEffectDialog.eventEffectAdded += MyGUI::newDelegate(this, &EffectEditorBase::onEffectAdded);
|
mAddEffectDialog.eventEffectAdded += MyGUI::newDelegate(this, &EffectEditorBase::onEffectAdded);
|
||||||
|
|
|
@ -123,6 +123,7 @@ namespace MWGui
|
||||||
, mScreenFader(NULL)
|
, mScreenFader(NULL)
|
||||||
, mDebugWindow(NULL)
|
, mDebugWindow(NULL)
|
||||||
, mTranslationDataStorage (translationDataStorage)
|
, mTranslationDataStorage (translationDataStorage)
|
||||||
|
, mSoftwareCursor(NULL)
|
||||||
, mCharGen(NULL)
|
, mCharGen(NULL)
|
||||||
, mInputBlocker(NULL)
|
, mInputBlocker(NULL)
|
||||||
, mCrosshairEnabled(Settings::Manager::getBool ("crosshair", "HUD"))
|
, mCrosshairEnabled(Settings::Manager::getBool ("crosshair", "HUD"))
|
||||||
|
|
Loading…
Reference in a new issue