aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v72he.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-04-09 07:25:41 +0000
committerTravis Howell2005-04-09 07:25:41 +0000
commit4f085516437369eccf22c96d84362f4d39c1448b (patch)
tree2c6c6495bb796d00b3505f16540587e10cac9e87 /scumm/script_v72he.cpp
parent73d1d63f1502a94eb27fc3186b8e012e342de87d (diff)
downloadscummvm-rg350-4f085516437369eccf22c96d84362f4d39c1448b.tar.gz
scummvm-rg350-4f085516437369eccf22c96d84362f4d39c1448b.tar.bz2
scummvm-rg350-4f085516437369eccf22c96d84362f4d39c1448b.zip
Add comment to TODO
Check that string pointer exists, before reading data. Don't attempt to play speech in soccer2004, since it uses compression. svn-id: r17470
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r--scumm/script_v72he.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index c6feadd0c9..9b3b014080 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -572,8 +572,10 @@ void ScummEngine_v72he::decodeScriptString(byte *dst, bool scriptString) {
break;
case 's':
src = getStringAddress(args[val--]);
- while (*src != 0)
- *dst++ = *src++;
+ if (src) {
+ while (*src != 0)
+ *dst++ = *src++;
+ }
break;
case 'x':
dst += sprintf((char *)dst, "%x", args[val--]);