aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v72he.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-05-22 09:14:54 +0000
committerTravis Howell2005-05-22 09:14:54 +0000
commit8314fc2d22795c6169d73eb811829020301fb1e5 (patch)
treeb952233400fddf04598d32bbd7b59e42af94c6c0 /scumm/script_v72he.cpp
parent9135c8ddfe8a13791e8ace981cf098e7c45f600c (diff)
downloadscummvm-rg350-8314fc2d22795c6169d73eb811829020301fb1e5.tar.gz
scummvm-rg350-8314fc2d22795c6169d73eb811829020301fb1e5.tar.bz2
scummvm-rg350-8314fc2d22795c6169d73eb811829020301fb1e5.zip
Correct array sizes.
Fixes loading game in mustard. svn-id: r18214
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r--scumm/script_v72he.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index e74913edc4..0bb5cc1db8 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -1457,7 +1457,7 @@ void ScummEngine_v72he::o72_arrayOps() {
switch (subOp) {
case 7: // SO_ASSIGN_STRING
copyScriptString(string, sizeof(string));
- len = resStrLen(string) + 1;
+ len = resStrLen(string);
ah = defineArray(array, kStringArray, 0, 0, 0, len);
memcpy(ah->data, string, len);
break;
@@ -1536,7 +1536,7 @@ void ScummEngine_v72he::o72_arrayOps() {
break;
case 194:
decodeScriptString(string);
- len = resStrLen(string) + 1;
+ len = resStrLen(string);
ah = defineArray(array, kStringArray, 0, 0, 0, len);
memcpy(ah->data, string, len);
break;