aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2017-08-18 22:30:38 -0400
committerPaul Gilbert2017-08-18 22:30:38 -0400
commit8308341a98991ff0809ee9b38121e3d4a73a39f3 (patch)
tree23de4cd082a44bb869c157505440c091ebd8bf67
parent8e35f77e2ddec913e35134be12ef23c6d696c3db (diff)
downloadscummvm-rg350-8308341a98991ff0809ee9b38121e3d4a73a39f3.tar.gz
scummvm-rg350-8308341a98991ff0809ee9b38121e3d4a73a39f3.tar.bz2
scummvm-rg350-8308341a98991ff0809ee9b38121e3d4a73a39f3.zip
TITANIC: Fix use-after-free in TTtalker when loading savegames
-rw-r--r--engines/titanic/game_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/game_manager.cpp b/engines/titanic/game_manager.cpp
index 13fe1d2872..65a2a278c8 100644
--- a/engines/titanic/game_manager.cpp
+++ b/engines/titanic/game_manager.cpp
@@ -81,8 +81,8 @@ void CGameManager::preLoad() {
_timers.destroyContents();
_soundMaker = nullptr;
- _trueTalkManager.preLoad();
_sound.preLoad();
+ _trueTalkManager.preLoad();
}
void CGameManager::postLoad(CProjectItem *project) {