mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 15:18:11 +00:00
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:
parent
0a6993a09b
commit
771be9e3a9
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user