aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kscripts.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sci/engine/kscripts.cpp b/engines/sci/engine/kscripts.cpp
index 945a63459b..fdcd8d977b 100644
--- a/engines/sci/engine/kscripts.cpp
+++ b/engines/sci/engine/kscripts.cpp
@@ -216,7 +216,7 @@ reg_t kDisposeScript(EngineState *s, int argc, reg_t *argv) {
if (argv[0].segment)
return s->r_acc;
- int id = s->_segMan->getScriptSegment(script);
+ SegmentId id = s->_segMan->getScriptSegment(script);
Script *scr = s->_segMan->getScriptIfLoaded(id);
if (scr) {
if (s->_executionStack.back().addr.pc.segment != id)
@@ -224,7 +224,6 @@ reg_t kDisposeScript(EngineState *s, int argc, reg_t *argv) {
}
script_uninstantiate(s->_segMan, script);
- s->_executionStackPosChanged = true;
if (argc != 2) {
return s->r_acc;