diff options
author | Nicolas Bacca | 2005-01-10 20:49:35 +0000 |
---|---|---|
committer | Nicolas Bacca | 2005-01-10 20:49:35 +0000 |
commit | a6d6ec4a7768ea5de4c8bc572ba4b3bda753a5a1 (patch) | |
tree | 5b855b18f50ca5ff37e2598116cd5e7afcdc4967 /queen/music.cpp | |
parent | 6cfe0f79686140a8962d6ef5dcf5b9e9558c71e9 (diff) | |
download | scummvm-rg350-a6d6ec4a7768ea5de4c8bc572ba4b3bda753a5a1.tar.gz scummvm-rg350-a6d6ec4a7768ea5de4c8bc572ba4b3bda753a5a1.tar.bz2 scummvm-rg350-a6d6ec4a7768ea5de4c8bc572ba4b3bda753a5a1.zip |
Fix alignment problem
svn-id: r16523
Diffstat (limited to 'queen/music.cpp')
-rw-r--r-- | queen/music.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/queen/music.cpp b/queen/music.cpp index 79f11fbdf2..8244c57d95 100644 --- a/queen/music.cpp +++ b/queen/music.cpp @@ -272,7 +272,7 @@ void MusicPlayer::playMusic() { for (uint i = 0; i < packedSize; i++) #if defined(SCUMM_NEED_ALIGNMENT) - memcpy(&_buf[i], &data[*(idx + i)], sizeof(uint16)); + memcpy(&_buf[i], (byte*)((byte*)data + *(idx + i) * sizeof(uint16)), sizeof(uint16)); #else _buf[i] = data[*(idx + i)]; #endif |