diff options
author | Travis Howell | 2005-05-22 09:14:54 +0000 |
---|---|---|
committer | Travis Howell | 2005-05-22 09:14:54 +0000 |
commit | 8314fc2d22795c6169d73eb811829020301fb1e5 (patch) | |
tree | b952233400fddf04598d32bbd7b59e42af94c6c0 | |
parent | 9135c8ddfe8a13791e8ace981cf098e7c45f600c (diff) | |
download | scummvm-rg350-8314fc2d22795c6169d73eb811829020301fb1e5.tar.gz scummvm-rg350-8314fc2d22795c6169d73eb811829020301fb1e5.tar.bz2 scummvm-rg350-8314fc2d22795c6169d73eb811829020301fb1e5.zip |
Correct array sizes.
Fixes loading game in mustard.
svn-id: r18214
-rw-r--r-- | scumm/script_v72he.cpp | 4 |
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; |