aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMax Horn2010-02-15 10:01:09 +0000
committerMax Horn2010-02-15 10:01:09 +0000
commitb246c867df233b4f9fb9f15a47d8f4492ad4cb09 (patch)
tree8192c5685c6142de917123a6754463ae0e44a08b /engines/sci
parent975dbef0e58289a81cd55cf43304e5e20114a876 (diff)
downloadscummvm-rg350-b246c867df233b4f9fb9f15a47d8f4492ad4cb09.tar.gz
scummvm-rg350-b246c867df233b4f9fb9f15a47d8f4492ad4cb09.tar.bz2
scummvm-rg350-b246c867df233b4f9fb9f15a47d8f4492ad4cb09.zip
SCI: No need to set _executionStackPosChanged in kDisposeScript, as the callk opcode handler does that already
svn-id: r48064
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;