aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/script_v72he.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index 67ecfb5d1b..68b8c2b672 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -646,13 +646,13 @@ void ScummEngine_v72he::decodeScriptString(byte *dst, bool scriptString) {
dst += sprintf((char *)dst, "%x", args[val++]);
break;
default:
- error("decodeScriptString: Unknown type %d", chr);
+ *dst = '%';
+ num--;
+ break;
}
-
-
- continue;
+ } else {
+ *dst++ = chr;
}
- *dst++ = chr;
}
*dst = 0;
}