aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorDavid Fioramonti2018-06-30 14:14:53 -0700
committerDavid Fioramonti2018-06-30 14:30:35 -0700
commit771be9e3a9a28bbeaf69931b51d56e2f9b834976 (patch)
treedc322e43723a6003026c92ff2bfa55153d2bc139 /engines
parent0a6993a09b9efd9cd17243e51aa64522bec78b4e (diff)
downloadscummvm-rg350-771be9e3a9a28bbeaf69931b51d56e2f9b834976.tar.gz
scummvm-rg350-771be9e3a9a28bbeaf69931b51d56e2f9b834976.tar.bz2
scummvm-rg350-771be9e3a9a28bbeaf69931b51d56e2f9b834976.zip
TITANIC: Address readSavegameHeader compiler warning
A function had a bool return that was not being used now it is checked and an error is issued if the call fails.
Diffstat (limited to 'engines')
-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);