mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 21:35:44 +00:00
Make a member function a const member function.
Issue found by cppcheck.
This commit is contained in:
parent
6a8149dc3c
commit
ab99b29259
@ -130,7 +130,7 @@ public:
|
||||
*/
|
||||
bool next_turn() {return tod_manager_.next_turn();}
|
||||
|
||||
int current_side() { return player_number_; }
|
||||
int current_side() const { return player_number_; }
|
||||
|
||||
void add_time_area(const config& cfg) {tod_manager_.add_time_area(cfg);}
|
||||
void add_time_area(const std::string& id, const std::set<map_location>& locs,
|
||||
|
Loading…
x
Reference in New Issue
Block a user