diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/ministatuswindow.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp index 65bef8e5c..c6341f972 100644 --- a/src/gui/windows/ministatuswindow.cpp +++ b/src/gui/windows/ministatuswindow.cpp @@ -38,6 +38,7 @@ #include "gui/windows/statuswindow.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/progressbar.h" #include "net/playerhandler.h" @@ -111,14 +112,12 @@ MiniStatusWindow::MiniStatusWindow() : "statusprogressbar.xml", "statusprogressbar_fill.xml", // TRANSLATORS: status bar name "status bar", _("status bar"))), - mStatusPopup(new StatusPopup), + mStatusPopup(CREATEWIDGETR0(StatusPopup)), mSpacing(mSkin ? mSkin->getOption("spacing", 3) : 3), mIconPadding(mSkin ? mSkin->getOption("iconPadding", 3) : 3), mIconSpacing(mSkin ? mSkin->getOption("iconSpacing", 2) : 2), mMaxX(0) { - mStatusPopup->postInit(); - StatusWindow::updateHPBar(mHpBar); if (gameHandler->canUseMagicBar() && statusWindow) |