aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/script_v72he.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index d155059c33..145324e3f2 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -533,13 +533,12 @@ void ScummEngine_v72he::copyScriptString(byte *dst) {
void ScummEngine_v72he::decodeScriptString(byte *dst, bool scriptString) {
int args[31];
- int num = 0, val;
- int len, id;
+ int num = 0, len, val;
byte chr, string[256];
memset(string, 0, sizeof(string));
val = getStackList(args, ARRAYSIZE(args));
- args[val] = id = pop();
+ args[val] = pop();
if (scriptString) {
addMessageToStack(_scriptPointer, string, sizeof(string));