From 68b3cc89aed973640a5be3b394cf0effeff8b9c5 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 18 May 2009 20:08:18 +0000 Subject: Fixed long standing palette loading bug in WSA v1 code. svn-id: r40700 --- engines/kyra/wsamovie.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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) { -- cgit v1.2.3