Add const annotation to new function

(cherry-picked from commit 9f58a8063561a1ce4897fa88c1982e68dece33bc)
This commit is contained in:
josteph 2018-09-14 22:52:54 +00:00
parent 4b29bd7fa2
commit 19479d70bd
2 changed files with 2 additions and 2 deletions

View File

@ -362,7 +362,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),

View File

@ -265,7 +265,7 @@ public:
virtual void send_to_wesnothd(const config&, const std::string& = "unknown") const { }
virtual bool receive_from_wesnothd(config&) const { return false; }
/// 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