aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v7he.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-05-07 08:10:23 +0000
committerTravis Howell2005-05-07 08:10:23 +0000
commitabcd44cd683c91ec52b887cacee2d4fbff7e7e4c (patch)
treeff8c8174175c450233330834d7ab38c4907dfb51 /scumm/script_v7he.cpp
parent8de4c596a090c819e36990085ddc03302b482c0e (diff)
downloadscummvm-rg350-abcd44cd683c91ec52b887cacee2d4fbff7e7e4c.tar.gz
scummvm-rg350-abcd44cd683c91ec52b887cacee2d4fbff7e7e4c.tar.bz2
scummvm-rg350-abcd44cd683c91ec52b887cacee2d4fbff7e7e4c.zip
Missed one section.
svn-id: r17939
Diffstat (limited to 'scumm/script_v7he.cpp')
-rw-r--r--scumm/script_v7he.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp
index 5ba8004a14..b85e6da83d 100644
--- a/scumm/script_v7he.cpp
+++ b/scumm/script_v7he.cpp
@@ -512,7 +512,6 @@ void ScummEngine_v70he::o70_resourceRoutines() {
subOp = fetchScriptByte();
- debug(0, "o70_resourceRoutines: case %d", subOp);
switch (subOp) {
case 100: // SO_LOAD_SCRIPT
resid = pop();
@@ -606,6 +605,8 @@ void ScummEngine_v70he::o70_resourceRoutines() {
case 120:
// Queue load script
resid = pop();
+ if (resid >= _numGlobalScripts)
+ break;
ensureResourceLoaded(rtScript, resid);
break;
case 121: