summaryrefslogtreecommitdiff
path: root/src/game/GameController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameController.cpp')
-rw-r--r--src/game/GameController.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index dfbd935..6ed6e0f 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -39,7 +39,7 @@ public:
{
try
{
- cc->gameModel->SetSave(new SaveInfo(*(cc->search->GetLoadedSave())));
+ cc->gameModel->SetSave(cc->search->GetLoadedSave());
}
catch(GameModelException & ex)
{
@@ -163,6 +163,7 @@ GameController::~GameController()
ui::Engine::Ref().CloseWindow();
}
delete gameModel;
+ delete gameView;
}
GameView * GameController::GetView()