aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTravis Howell2009-06-18 01:13:42 +0000
committerTravis Howell2009-06-18 01:13:42 +0000
commit68cb22d4a95060bcba9b5a44508bc4ab57cb47ed (patch)
tree793dc9c5a496d572f9b65e8536f6c0734f44071c /engines/scumm
parente1c93e7342770f052bc0aecf4aab760e7008bb65 (diff)
downloadscummvm-rg350-68cb22d4a95060bcba9b5a44508bc4ab57cb47ed.tar.gz
scummvm-rg350-68cb22d4a95060bcba9b5a44508bc4ab57cb47ed.tar.bz2
scummvm-rg350-68cb22d4a95060bcba9b5a44508bc4ab57cb47ed.zip
Fix regression, caused by typo in my last commit.
svn-id: r41621
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/he/wiz_he.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp
index deaf7aaf72..b2e367719e 100644
--- a/engines/scumm/he/wiz_he.cpp
+++ b/engines/scumm/he/wiz_he.cpp
@@ -1152,10 +1152,8 @@ static int wizPackType2(uint8 *dst, const uint8 *src, int srcPitch, const Common
if (dst) {
src += rCapt.top * srcPitch + rCapt.left * 2;
while (h--) {
- for (int i = 0; i < w; i++) {
- uint16 col = READ_UINT16(src + w * 2);
- WRITE_LE_UINT16(dst + w * 2, col);
- }
+ for (int i = 0; i < w; i++)
+ WRITE_LE_UINT16(dst + i * 2, READ_UINT16(src + i * 2));
dst += w * 2;
src += srcPitch;
}