@@ -76,7 +76,7 @@ class mission_ui_impl : public cataimgui::window
76
76
bool &need_adjust ) const ;
77
77
void draw_selected_description ( std::vector<mission *> missions, int &selected_mission );
78
78
void draw_selected_description ( std::vector<point_of_interest> points_of_interest,
79
- int &selected_mission );
79
+ const int &selected_mission );
80
80
81
81
mission_ui_tab_enum selected_tab = mission_ui_tab_enum::ACTIVE;
82
82
mission_ui_tab_enum switch_tab = mission_ui_tab_enum::num_tabs;
@@ -246,7 +246,7 @@ void mission_ui_impl::draw_controls()
246
246
{ mission_ui_tab_enum::ACTIVE, translate_marker ( " You have no active missions!" ) },
247
247
{ mission_ui_tab_enum::COMPLETED, translate_marker ( " You haven't completed any missions!" ) },
248
248
{ mission_ui_tab_enum::FAILED, translate_marker ( " You haven't failed any missions!" ) },
249
- {mission_ui_tab_enum::POINTS_OF_INTEREST, translate_marker ( " You don't have any points of interest. Add those from the overmap." )}
249
+ {mission_ui_tab_enum::POINTS_OF_INTEREST, translate_marker ( " You don't have any points of interest. Add those from the overmap." )}
250
250
};
251
251
ImGui::TextWrapped ( " %s" , nope.at ( selected_tab ).c_str () );
252
252
return ;
@@ -441,7 +441,7 @@ void mission_ui_impl::draw_selected_description( std::vector<mission *> missions
441
441
}
442
442
443
443
void mission_ui_impl::draw_selected_description ( std::vector<point_of_interest> points_of_interest,
444
- int &selected_mission )
444
+ const int &selected_mission )
445
445
{
446
446
point_of_interest selected_point_of_interest = points_of_interest[selected_mission];
447
447
ImGui::TextWrapped ( _ ( " Point of Interest: %s" ), selected_point_of_interest.text .c_str () );
0 commit comments