TITANIC: Fix crash clicking mouse when copyright dialog is showing

This commit is contained in:
Paul Gilbert 2017-06-18 15:49:19 -04:00
parent ec9351bdb6
commit f827e27bfb

View File

@ -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;