diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 6c0bc4cf6d..e3daba039d 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1457,7 +1457,7 @@ public: { _smallmap_industry_highlight = INVALID_INDUSTRYTYPE; this->overlay = std::make_unique(this, WID_SM_MAP, 0, this->GetOverlayCompanyMask(), 1); - this->InitNested(window_number); + this->CreateNestedTree(); this->LowerWidget(WID_SM_CONTOUR + this->map_type); this->RebuildColourIndexIfNecessary(); @@ -1468,6 +1468,7 @@ public: this->SetWidgetLoweredState(WID_SM_SHOW_IND_NAMES, this->show_ind_names); this->SetupWidgetData(); + this->FinishInitNested(window_number); this->SetZoomLevel(ZLC_INITIALIZE, nullptr); this->SmallMapCenterOnCurrentPos();