aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cruise/script.cpp')
-rw-r--r--engines/cruise/script.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/cruise/script.cpp b/engines/cruise/script.cpp
index d6c1aa47f3..3d07575c16 100644
--- a/engines/cruise/script.cpp
+++ b/engines/cruise/script.cpp
@@ -185,8 +185,9 @@ int32 opcodeType1() {
return 0;
}
case 2: {
+ assert (ptr);
*(ptr + var_A + offset) = var;
- return (0);
+ return 0;
}
default:
error("Unsupported code in opcodeType1 case 1");