aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/scene.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2007-07-31 15:36:38 +0000
committerFilippos Karapetis2007-07-31 15:36:38 +0000
commit89451cfa43a81eaa1d944229571d8eb7c4cac5b8 (patch)
tree8fd796ac689580f7dbcb3b61c90e1d2bd539a1a5 /engines/saga/scene.cpp
parent7c2857ce8145d2f371cd36119bbc59d968d93034 (diff)
downloadscummvm-rg350-89451cfa43a81eaa1d944229571d8eb7c4cac5b8.tar.gz
scummvm-rg350-89451cfa43a81eaa1d944229571d8eb7c4cac5b8.tar.bz2
scummvm-rg350-89451cfa43a81eaa1d944229571d8eb7c4cac5b8.zip
It's now possible to return to the chapter selection screen correctly in IHNM
svn-id: r28358
Diffstat (limited to 'engines/saga/scene.cpp')
-rw-r--r--engines/saga/scene.cpp11
1 files changed, 10 insertions, 1 deletions
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()