From 7e373c206da2b9f762e412895529e2b49bb0510d Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Tue, 30 Jul 2013 21:38:41 +0200 Subject: [PATCH] Fix NewUI bug where returning to menu and starting a new game started the wrong game somehow. --- UI/MainScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 169c7c00ee..9ef5c78075 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -521,7 +521,7 @@ UI::EventReturn GamePauseScreen::OnContinue(UI::EventParams &e) { } UI::EventReturn GamePauseScreen::OnExitToMenu(UI::EventParams &e) { - screenManager()->switchScreen(new MainScreen()); + screenManager()->finishDialog(this, DR_OK); return UI::EVENT_DONE; }