aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/script_v6.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index 842740e215..deb1ff7291 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -681,7 +681,8 @@ void ScummEngine_v6::o6_ifNot() {
}
void ScummEngine_v6::o6_jump() {
- _scriptPointer += fetchScriptWordSigned();
+ int offset = fetchScriptWordSigned();
+ _scriptPointer += offset;
}
void ScummEngine_v6::o6_startScript() {
@@ -2872,7 +2873,7 @@ void ScummEngine_v6::o6_openFile() {
byte filename[100];
_msgPtrToAdd = filename;
- _messagePtr =_scriptPointer;
+ _messagePtr = _scriptPointer;
addMessageToStack(_messagePtr);
len = resStrLen(_scriptPointer);
@@ -2916,7 +2917,7 @@ void ScummEngine_v6::o6_deleteFile() {
byte filename[100];
_msgPtrToAdd = filename;
- _messagePtr =_scriptPointer;
+ _messagePtr = _scriptPointer;
addMessageToStack(_messagePtr);
len = resStrLen(_scriptPointer);