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.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/cruise/script.cpp b/engines/cruise/script.cpp
index d6c1aa47f3..317dcfbbe6 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");
@@ -448,7 +449,7 @@ int32 opcodeType3() { // math
}
int32 opcodeType9() { // stop script
- //printf("Stop a script of overlay %s\n",overlayTable[currentScriptPtr->overlayNumber].overlayName);
+ //debug("Stop a script of overlay %s", overlayTable[currentScriptPtr->overlayNumber].overlayName);
currentScriptPtr->scriptNumber = -1;
return (1);
}
@@ -500,7 +501,7 @@ uint8 *attacheNewScriptToTail(scriptInstanceStruct *scriptHandlePtr, int16 overl
int var_C;
scriptInstanceStruct *oldTail;
- //printf("Starting script %d of overlay %s\n",param,overlayTable[overlayNumber].overlayName);
+ //debug("Starting script %d of overlay %s", param,overlayTable[overlayNumber].overlayName);
if (scriptType < 0) {
useArg3Neg = 1;