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.
This commit is contained in:
David Fioramonti 2018-06-30 14:14:53 -07:00
parent 0a6993a09b
commit 771be9e3a9

View File

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