From 86b7034066dd476ce02d7116c208fa48f1c39e09 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 14 May 2005 01:26:52 +0000 Subject: Handle default case. svn-id: r18086 --- scumm/script_v72he.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scumm/script_v72he.cpp') 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; } -- cgit v1.2.3