aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/left_panel
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_tab/left_panel')
-rw-r--r--src/game_tab/left_panel/GameTabLeftPanel.cpp2
-rw-r--r--src/game_tab/left_panel/GameTabLeftPanel.hpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/game_tab/left_panel/GameTabLeftPanel.cpp b/src/game_tab/left_panel/GameTabLeftPanel.cpp
index d4c415d..a32ab23 100644
--- a/src/game_tab/left_panel/GameTabLeftPanel.cpp
+++ b/src/game_tab/left_panel/GameTabLeftPanel.cpp
@@ -1,7 +1,7 @@
#include "GameTabLeftPanel.hpp"
#include <wx/clipbrd.h>
-GameTabLeftPanel::GameTabLeftPanel(wxFrame *parent, Game *game)
+GameTabLeftPanel::GameTabLeftPanel(wxFrame *parent, std::shared_ptr<Game> game)
: TabGameLeftPanel(parent), game(game) {
// Add board
diff --git a/src/game_tab/left_panel/GameTabLeftPanel.hpp b/src/game_tab/left_panel/GameTabLeftPanel.hpp
index c4b58b9..7aeb725 100644
--- a/src/game_tab/left_panel/GameTabLeftPanel.hpp
+++ b/src/game_tab/left_panel/GameTabLeftPanel.hpp
@@ -9,12 +9,12 @@ wxDECLARE_EVENT(GAME_CHANGE, wxCommandEvent);
class GameTabLeftPanel : public TabGameLeftPanel {
- Game *game;
+ std::shared_ptr<Game> game;
BoardCanvas *board_canvas;
void NotifyEditor();
public:
- GameTabLeftPanel(wxFrame *parent, Game *game);
+ GameTabLeftPanel(wxFrame *parent, std::shared_ptr<Game> game);
void Notify();
void OnPlay(wxCommandEvent &event);
void OnGotoMove(wxCommandEvent &event);