From 8314fc2d22795c6169d73eb811829020301fb1e5 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 22 May 2005 09:14:54 +0000 Subject: Correct array sizes. Fixes loading game in mustard. svn-id: r18214 --- scumm/script_v72he.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scumm/script_v72he.cpp') 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; -- cgit v1.2.3