summaryrefslogtreecommitdiff
path: root/src/gui/ministatuswindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ministatuswindow.cpp')
-rw-r--r--src/gui/ministatuswindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/ministatuswindow.cpp b/src/gui/ministatuswindow.cpp
index f9c1a28ea..ad5890056 100644
--- a/src/gui/ministatuswindow.cpp
+++ b/src/gui/ministatuswindow.cpp
@@ -53,6 +53,9 @@ typedef std::vector <ProgressBar*>::const_iterator ProgressBarVectorCIter;
MiniStatusWindow::MiniStatusWindow() :
Popup("MiniStatus", "ministatus.xml"),
InventoryListener(),
+ mBars(),
+ mBarNames(),
+ mIcons(),
mSpacing(mSkin ? mSkin->getOption("spacing", 3) : 3),
mIconPadding(mSkin ? mSkin->getOption("iconPadding", 3) : 3),
mIconSpacing(mSkin ? mSkin->getOption("iconSpacing", 2) : 2),
@@ -64,6 +67,7 @@ MiniStatusWindow::MiniStatusWindow() :
: nullptr),
mXpBar(createBar(0, 100, 0, Theme::PROG_EXP,
"xp bar", _("experience bar"))),
+ mJobBar(nullptr),
mWeightBar(createBar(0, 140, 0, Theme::PROG_WEIGHT,
"weight bar", _("weight bar"))),
mInvSlotsBar(createBar(0, 45, 0, Theme::PROG_INVY_SLOTS,
@@ -95,10 +99,6 @@ MiniStatusWindow::MiniStatusWindow() :
_("job bar"));
StatusWindow::updateJobBar(mJobBar);
}
- else
- {
- mJobBar = nullptr;
- }
loadBars();
updateBars();