diff options
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script_v2.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index 01004a2ee7..26264e9d45 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -1122,12 +1122,10 @@ void ScummEngine_v2::o2_stopScript() { if (script == 0) script = vm.slot[_currentScript].number; - if (_currentScript != 0) { - if (vm.slot[_currentScript].number == script) - stopObjectCode(); - } else { + if (_currentScript != 0 && vm.slot[_currentScript].number == script) + stopObjectCode(); + else stopScript(script); - } } void ScummEngine_v2::o2_panCameraTo() { |