aboutsummaryrefslogtreecommitdiff
path: root/src/guiPauseMenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guiPauseMenu.cpp')
-rw-r--r--src/guiPauseMenu.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/guiPauseMenu.cpp b/src/guiPauseMenu.cpp
index bcf4070c9..486e4107d 100644
--- a/src/guiPauseMenu.cpp
+++ b/src/guiPauseMenu.cpp
@@ -193,15 +193,16 @@ bool GUIPauseMenu::OnEvent(const SEvent& event)
{
case 256: // continue
quitMenu();
- break;
+ // ALWAYS return immediately after quitMenu()
+ return true;
case 260: // disconnect
m_gamecallback->disconnect();
quitMenu();
- break;
+ return true;
case 257: // exit
m_gamecallback->exitToOS();
quitMenu();
- break;
+ return true;
}
}
}