Skip to content

Commit

Permalink
Add const annotation to new function
Browse files Browse the repository at this point in the history
  • Loading branch information
jostephd committed Sep 14, 2018
1 parent d99f5b8 commit 9f58a80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/play_controller.cpp
Expand Up @@ -388,7 +388,7 @@ void play_controller::fire_prestart()
gamestate().gamedata_.get_variable("turn_number") = static_cast<int>(turn());
}

void play_controller::refresh_objectives()
void play_controller::refresh_objectives() const
{
const config cfg("side", gui_->viewing_side());
gamestate().lua_kernel_->run_wml_action("show_objectives", vconfig(cfg),
Expand Down
2 changes: 1 addition & 1 deletion src/play_controller.hpp
Expand Up @@ -362,7 +362,7 @@ class play_controller : public controller_base, public events::observer, public
}

/// Reevaluate [show_if] conditions and build a new objectives string.
void refresh_objectives();
void refresh_objectives() const;
void show_objectives() const;

struct scoped_savegame_snapshot
Expand Down

0 comments on commit 9f58a80

Please sign in to comment.