aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/scene.cpp
diff options
context:
space:
mode:
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()