diff options
Diffstat (limited to 'StarsEx/CmdDlg.cpp')
-rw-r--r-- | StarsEx/CmdDlg.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/StarsEx/CmdDlg.cpp b/StarsEx/CmdDlg.cpp index 89f7a9e..0392e24 100644 --- a/StarsEx/CmdDlg.cpp +++ b/StarsEx/CmdDlg.cpp @@ -14,7 +14,6 @@ #include "CmdDlg.h" #include "CmpFileDlg.h" #include "CmpnScreen.h" -#include "Starshatter.h" #include "Campaign.h" #include "Combatant.h" #include "CombatGroup.h" @@ -35,9 +34,8 @@ CmdDlg::CmdDlg(CmpnScreen* mgr) : cmpn_screen(mgr), txt_group(0), txt_score(0), txt_name(0), txt_time(0), - btn_save(0), btn_exit(0), stars(0), campaign(0), mode(0) + btn_save(0), btn_exit(0), campaign(0), mode(0) { - stars = Starshatter::GetInstance(); campaign = Campaign::GetCampaign(); for (int i = 0; i < 5; i++) @@ -173,9 +171,9 @@ CmdDlg::OnSave(AWEvent* event) void CmdDlg::OnExit(AWEvent* event) { - if (stars) { + if (auto game = Game::GetInstance()) { Mouse::Show(false); - stars->SetGameMode(Game::MENU_MODE); + game->SetGameMode(Game::MENU_MODE); } } |