aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-02-23 01:10:05 +0000
committerTravis Howell2004-02-23 01:10:05 +0000
commit02eab2641dda74f8c327c535291949c52dea9192 (patch)
treedad51967e1e8e09d2f30ad0e953388fe5293dfab /scumm
parent6588b17469da1b6eb7ac1499f1ddfe20445a087c (diff)
downloadscummvm-rg350-02eab2641dda74f8c327c535291949c52dea9192.tar.gz
scummvm-rg350-02eab2641dda74f8c327c535291949c52dea9192.tar.bz2
scummvm-rg350-02eab2641dda74f8c327c535291949c52dea9192.zip
Ooops, missed a call.
svn-id: r13000
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v2.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp
index a438a786db..01004a2ee7 100644
--- a/scumm/script_v2.cpp
+++ b/scumm/script_v2.cpp
@@ -1123,8 +1123,10 @@ void ScummEngine_v2::o2_stopScript() {
script = vm.slot[_currentScript].number;
if (_currentScript != 0) {
- if (vm.slot[_currentScript].number == script)
- stopScript(script);
+ if (vm.slot[_currentScript].number == script)
+ stopObjectCode();
+ } else {
+ stopScript(script);
}
}