File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ void avatar::set_active_mission( mission &cur_mission )
347
347
348
348
void avatar::set_active_point_of_interest ( const point_of_interest &active_point_of_interest )
349
349
{
350
- for ( const point_of_interest iter : points_of_interest ) {
350
+ for ( const point_of_interest & iter : points_of_interest ) {
351
351
// It's really sufficient to only check the position as used...
352
352
if ( iter.pos == active_point_of_interest.pos &&
353
353
iter.text == active_point_of_interest.text ) {
Original file line number Diff line number Diff line change @@ -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
- const int &selected_mission );
79
+ const int &selected_mission ) const ;
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;
@@ -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
- const int &selected_mission )
444
+ const int &selected_mission ) const
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 () );
You can’t perform that action at this time.
0 commit comments