Fix broken ProgressBarMessage after 8f596e29b3

This commit is contained in:
Benau 2023-08-15 10:48:21 +08:00
parent a47e69d74e
commit e00a81a961
2 changed files with 3 additions and 2 deletions

View File

@ -302,6 +302,7 @@ public:
ProgressBarMessage(const core::stringw& msg) :
Message(9999999.9f, msg)
{
m_swc.m_next = new SkinWidgetContainer;
} // ProgressBarMessage
// ------------------------------------------------------------------------
~ProgressBarMessage() { g_progress.store(-1); }

View File

@ -33,8 +33,8 @@ using namespace irr;
ProgressBarWidget::ProgressBarWidget(bool show_label) : Widget(WTYPE_PROGRESS)
{
// A progress bar consists of two parts, so need two containers
m_next = new SkinWidgetContainer;
m_next = new SkinWidgetContainer;
m_value = 0;
m_target_value = 0;
m_previous_value = 0;