Skip to content

Commit 5e7bd3c

Browse files
committed
Satisfy demands
1 parent 070d354 commit 5e7bd3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/avatar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ void avatar::set_active_mission( mission &cur_mission )
347347

348348
void avatar::set_active_point_of_interest( const point_of_interest &active_point_of_interest )
349349
{
350-
for( const point_of_interest iter : points_of_interest ) {
350+
for( const point_of_interest &iter : points_of_interest ) {
351351
// It's really sufficient to only check the position as used...
352352
if( iter.pos == active_point_of_interest.pos &&
353353
iter.text == active_point_of_interest.text ) {

src/mission_ui.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class mission_ui_impl : public cataimgui::window
7676
bool &need_adjust ) const;
7777
void draw_selected_description( std::vector<mission *> missions, int &selected_mission );
7878
void draw_selected_description( std::vector<point_of_interest> points_of_interest,
79-
const int &selected_mission );
79+
const int &selected_mission ) const;
8080

8181
mission_ui_tab_enum selected_tab = mission_ui_tab_enum::ACTIVE;
8282
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
441441
}
442442

443443
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
445445
{
446446
point_of_interest selected_point_of_interest = points_of_interest[selected_mission];
447447
ImGui::TextWrapped( _( "Point of Interest: %s" ), selected_point_of_interest.text.c_str() );

0 commit comments

Comments
 (0)