diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/core/project_item.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/titanic/core/project_item.cpp b/engines/titanic/core/project_item.cpp index 94689f1600..16fe0e6ec1 100644 --- a/engines/titanic/core/project_item.cpp +++ b/engines/titanic/core/project_item.cpp @@ -190,7 +190,11 @@ void CProjectItem::loadGame(int slotId) { // Load the savegame header in TitanicSavegameHeader header; readSavegameHeader(&file, header); - delete header._thumbnail; + if (header._thumbnail) { + header._thumbnail->free(); + delete header._thumbnail; + } + g_vm->_events->setTotalPlayTicks(header._totalFrames); // Load the contents in |