diff options
author | Paul Gilbert | 2017-06-18 15:49:19 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-06-18 15:49:19 -0400 |
commit | f827e27bfbc0538f68e636798626dde60c19fadb (patch) | |
tree | d8880e51c4dd46fff40d42ffc4e1cc1c08dd6512 /engines/titanic | |
parent | ec9351bdb636a6ceb949331ce0f9a94feeaaa27e (diff) | |
download | scummvm-rg350-f827e27bfbc0538f68e636798626dde60c19fadb.tar.gz scummvm-rg350-f827e27bfbc0538f68e636798626dde60c19fadb.tar.bz2 scummvm-rg350-f827e27bfbc0538f68e636798626dde60c19fadb.zip |
TITANIC: Fix crash clicking mouse when copyright dialog is showing
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/main_game_window.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/titanic/main_game_window.cpp b/engines/titanic/main_game_window.cpp index 41ccd6d274..9fdeac327f 100644 --- a/engines/titanic/main_game_window.cpp +++ b/engines/titanic/main_game_window.cpp @@ -363,6 +363,9 @@ void CMainGameWindow::keyDown(Common::KeyState keyState) { } bool CMainGameWindow::isMouseControlEnabled() const { + if (!_gameManager) + return false; + CScreenManager *screenMan = CScreenManager::_screenManagerPtr; if (!screenMan || !screenMan->_mouseCursor) return true; |