aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2009-05-18 20:08:18 +0000
committerJohannes Schickel2009-05-18 20:08:18 +0000
commit68b3cc89aed973640a5be3b394cf0effeff8b9c5 (patch)
tree57ea2ebf07005e15835da49bd0fe6f4a179d7788 /engines
parentcc250e002998bfff54553d55580b8bc73fe715e7 (diff)
downloadscummvm-rg350-68b3cc89aed973640a5be3b394cf0effeff8b9c5.tar.gz
scummvm-rg350-68b3cc89aed973640a5be3b394cf0effeff8b9c5.tar.bz2
scummvm-rg350-68b3cc89aed973640a5be3b394cf0effeff8b9c5.zip
Fixed long standing palette loading bug in WSA v1 code.
svn-id: r40700
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/wsamovie.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/wsamovie.cpp b/engines/kyra/wsamovie.cpp
index 0aca374346..0bd6bf5005 100644
--- a/engines/kyra/wsamovie.cpp
+++ b/engines/kyra/wsamovie.cpp
@@ -65,7 +65,7 @@ int WSAMovie_v1::open(const char *filename, int offscreenDecode, uint8 *palBuf)
offsPal = 0x300;
_flags |= WF_HAS_PALETTE;
if (palBuf)
- memcpy(palBuf, wsaData + (_numFrames + 2) * 4, 0x300);
+ memcpy(palBuf, wsaData + 8 + (_numFrames << 2), 0x300);
}
if (offscreenDecode) {