diff options
author | Paul Gilbert | 2018-06-30 15:35:30 -0700 |
---|---|---|
committer | GitHub | 2018-06-30 15:35:30 -0700 |
commit | 0fefa96897f0889c0874290567ab4a9a2d42351f (patch) | |
tree | dc322e43723a6003026c92ff2bfa55153d2bc139 | |
parent | 0a6993a09b9efd9cd17243e51aa64522bec78b4e (diff) | |
parent | 771be9e3a9a28bbeaf69931b51d56e2f9b834976 (diff) | |
download | scummvm-rg350-0fefa96897f0889c0874290567ab4a9a2d42351f.tar.gz scummvm-rg350-0fefa96897f0889c0874290567ab4a9a2d42351f.tar.bz2 scummvm-rg350-0fefa96897f0889c0874290567ab4a9a2d42351f.zip |
Merge pull request #1237 from dafioram/titanicCompileWarn
TITANIC: Address readSavegameHeader compiler warning
-rw-r--r-- | engines/titanic/core/project_item.cpp | 3 |
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); |