diff options
author | Travis Howell | 2005-05-14 01:26:52 +0000 |
---|---|---|
committer | Travis Howell | 2005-05-14 01:26:52 +0000 |
commit | 86b7034066dd476ce02d7116c208fa48f1c39e09 (patch) | |
tree | 8836827fcd30b0ecfc93917927685f44e2dbfc77 | |
parent | ca65bf09fb2a980f0b36ef10a935c03b6c365645 (diff) | |
download | scummvm-rg350-86b7034066dd476ce02d7116c208fa48f1c39e09.tar.gz scummvm-rg350-86b7034066dd476ce02d7116c208fa48f1c39e09.tar.bz2 scummvm-rg350-86b7034066dd476ce02d7116c208fa48f1c39e09.zip |
Handle default case.
svn-id: r18086
-rw-r--r-- | scumm/script_v72he.cpp | 10 |
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; } |