aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v2.cpp')
-rw-r--r--scumm/script_v2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp
index 1ac7dc1b14..3a56085e83 100644
--- a/scumm/script_v2.cpp
+++ b/scumm/script_v2.cpp
@@ -782,7 +782,7 @@ void Scumm_v2::o2_resourceRoutines() {
if (0 <= (opcode >> 4) && (opcode >> 4) < (int)ARRAYSIZE(resTypes))
type = resTypes[opcode >> 4];
- if (type == rtNumTypes)
+ if ((opcode & 0x0f) == 0 || type == rtNumTypes)
return;
if ((opcode & 0x0f) == 1) {