aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/titanic/core/project_item.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/titanic/core/project_item.cpp b/engines/titanic/core/project_item.cpp
index 99eec803ac..5ba70e979b 100644
--- a/engines/titanic/core/project_item.cpp
+++ b/engines/titanic/core/project_item.cpp
@@ -189,7 +189,8 @@ void CProjectItem::loadGame(int slotId) {
// Load the savegame header in
TitanicSavegameHeader header;
- readSavegameHeader(&file, header);
+ if (!readSavegameHeader(&file, header))
+ error("Failed to read save game header");
g_vm->_events->setTotalPlayTicks(header._totalFrames);