diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1942,12 +1942,12 @@ static const NWidgetPart _nested_smallma EndContainer(), }; -static NWidgetBase *SmallMapDisplay(int *biggest_index) +static NWidgetBase *SmallMapDisplay() { NWidgetContainer *map_display = new NWidgetSmallmapDisplay; - MakeNWidgets(std::begin(_nested_smallmap_display), std::end(_nested_smallmap_display), biggest_index, map_display); - MakeNWidgets(std::begin(_nested_smallmap_bar), std::end(_nested_smallmap_bar), biggest_index, map_display); + MakeNWidgets(std::begin(_nested_smallmap_display), std::end(_nested_smallmap_display), map_display); + MakeNWidgets(std::begin(_nested_smallmap_bar), std::end(_nested_smallmap_bar), map_display); return map_display; }