aboutsummaryrefslogtreecommitdiff
path: root/src/base_tab/BaseTab.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base_tab/BaseTab.hpp')
-rw-r--r--src/base_tab/BaseTab.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base_tab/BaseTab.hpp b/src/base_tab/BaseTab.hpp
index f195d0e..9679f44 100644
--- a/src/base_tab/BaseTab.hpp
+++ b/src/base_tab/BaseTab.hpp
@@ -8,14 +8,14 @@ wxDECLARE_EVENT(NEW_GAME_EVENT, wxCommandEvent);
wxDECLARE_EVENT(REFRESH_TAB_TITLE, wxCommandEvent);
class BaseTab : public TabBase, public TabInfos {
- GameBase *base;
+ std::shared_ptr<GameBase> base;
std::vector<std::uint32_t> deleted;
std::vector<std::shared_ptr<Game>> edited;
std::string base_file;
public:
BaseTab(wxFrame *parent, std::string base_file);
- ~BaseTab();
+
void ApplyPreferences();
void LoadFile();
void OnDelete(wxCommandEvent &event);
@@ -24,5 +24,5 @@ public:
void OnOpenGame(wxListEvent &event);
void OnImport(wxCommandEvent &event);
std::shared_ptr<Game> GetGame() { return (std::shared_ptr<Game>(NULL)); }
- void *GetBase() { return (base); };
+ std::shared_ptr<GameBase> GetBase() { return (std::shared_ptr<GameBase>(base)); };
}; \ No newline at end of file