From 89451cfa43a81eaa1d944229571d8eb7c4cac5b8 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 31 Jul 2007 15:36:38 +0000 Subject: It's now possible to return to the chapter selection screen correctly in IHNM svn-id: r28358 --- engines/saga/scene.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'engines/saga/scene.cpp') diff --git a/engines/saga/scene.cpp b/engines/saga/scene.cpp index d615a2a387..6e51296bad 100644 --- a/engines/saga/scene.cpp +++ b/engines/saga/scene.cpp @@ -579,7 +579,16 @@ void Scene::loadScene(LoadSceneParams *loadSceneParams) { _vm->_interface->setLeftPortrait(0); _vm->_anim->freeCutawayList(); - _vm->_script->freeModules(); + // FIXME: Freed script modules are not reloaded correctly when changing chapters. + // This is apparent when returning back to the character selection screen, + // where the scene script module is loaded incorrectly + // Don't free them for now, but free them on game exit, like ITE. + // This has no impact on the game itself (other than increased memory usage), + // as each chapter uses a different module slot + // TODO: Find out why the script modules are not loaded correctly when + // changing chapters and uncomment this again + //_vm->_script->freeModules(); + // deleteAllScenes(); // installSomeAlarm() -- cgit v1.2.3