diff options
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r-- | src/smallmap_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 8001d2ed8..bc984ce63 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1045,11 +1045,11 @@ void SmallMapWindow::SetupWidgetData() this->GetWidget<NWidgetStacked>(WID_SM_SELECT_BUTTONS)->SetDisplayedPlane(plane); } -SmallMapWindow::SmallMapWindow(const WindowDesc *desc, int window_number) : Window(), refresh(FORCE_REFRESH_PERIOD) +SmallMapWindow::SmallMapWindow(WindowDesc *desc, int window_number) : Window(desc), refresh(FORCE_REFRESH_PERIOD) { _smallmap_industry_highlight = INVALID_INDUSTRYTYPE; this->overlay = new LinkGraphOverlay(this, WID_SM_MAP); - this->InitNested(desc, window_number); + this->InitNested(window_number); this->LowerWidget(this->map_type + WID_SM_CONTOUR); BuildLandLegend(); @@ -1776,7 +1776,7 @@ static const NWidgetPart _nested_smallmap_widgets[] = { EndContainer(), }; -static const WindowDesc _smallmap_desc( +static WindowDesc _smallmap_desc( WDP_AUTO, 484, 314, WC_SMALLMAP, WC_NONE, 0, |