aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2005-05-14 01:26:52 +0000
committerTravis Howell2005-05-14 01:26:52 +0000
commit86b7034066dd476ce02d7116c208fa48f1c39e09 (patch)
tree8836827fcd30b0ecfc93917927685f44e2dbfc77
parentca65bf09fb2a980f0b36ef10a935c03b6c365645 (diff)
downloadscummvm-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.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;
}