aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/titanic/titanic.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/titanic/titanic.cpp b/engines/titanic/titanic.cpp
index de28e073a9..67bdf82fa0 100644
--- a/engines/titanic/titanic.cpp
+++ b/engines/titanic/titanic.cpp
@@ -191,7 +191,7 @@ bool TitanicEngine::canLoadGameStateCurrently() {
return false;
if (screenMan && screenMan->_inputHandler->isLocked())
return false;
- if (!gameManager->isntTransitioning())
+ if (!gameManager || !gameManager->isntTransitioning())
return false;
CProjectItem *project = gameManager->_project;
@@ -210,6 +210,8 @@ bool TitanicEngine::canLoadGameStateCurrently() {
bool TitanicEngine::canSaveGameStateCurrently() {
CGameManager *gameManager = _window->_gameManager;
+ if (!gameManager)
+ return false;
return gameManager->_gameState._petActive &&
canLoadGameStateCurrently();