diff --git a/src/play_controller.hpp b/src/play_controller.hpp index aef12b8da159..5a073d0f0cbd 100644 --- a/src/play_controller.hpp +++ b/src/play_controller.hpp @@ -266,13 +266,13 @@ class play_controller : public controller_base, public events::observer, public virtual void send_to_wesnothd(const config&, const std::string& = "unknown") const { } virtual bool receive_from_wesnothd(config&) const { return false; } void show_objectives() const; -protected: struct scoped_savegame_snapshot { scoped_savegame_snapshot(const play_controller& controller); ~scoped_savegame_snapshot(); const play_controller& controller_; }; +protected: friend struct scoped_savegame_snapshot; void play_slice_catch(); bool have_keyboard_focus() override;