aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v72he.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-04-03 02:24:28 +0000
committerTravis Howell2005-04-03 02:24:28 +0000
commit27cba7619ec217d541d7160bb7daa00cb9b30b83 (patch)
tree0b8757ed01e411548fed99c805ed278c6d168322 /scumm/script_v72he.cpp
parent2e1ce57b5f72823a8ce8bce0bf8826162897822f (diff)
downloadscummvm-rg350-27cba7619ec217d541d7160bb7daa00cb9b30b83.tar.gz
scummvm-rg350-27cba7619ec217d541d7160bb7daa00cb9b30b83.tar.bz2
scummvm-rg350-27cba7619ec217d541d7160bb7daa00cb9b30b83.zip
More sprite renames
svn-id: r17342
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r--scumm/script_v72he.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index e47835fae2..e3a141f9e6 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -2061,21 +2061,20 @@ void ScummEngine_v72he::copyArrayHelper(ArrayHeader *ah, int idx2, int idx1, int
case kStringArray:
*num = len1 - idx1 + 1;
*size = pitch;
- *data = ah->data + offset;
+ *data = ah->data + offset + 1;
break;
case kIntArray:
- *num = (len1 - idx1 + 1) * 2;
+ *num = (len1 - idx1) * 2;
*size = pitch * 2;
*data = ah->data + offset * 2;
break;
case kDwordArray:
- *num = (len1 - idx1 + 1) * 4;
+ *num = (len1 - idx1) * 4;
*size = pitch * 4;
*data = ah->data + offset * 4;
break;
default:
error("Invalid array type", FROM_LE_32(ah->type));
- break;
}
}