diff options
author | Travis Howell | 2005-04-10 03:50:17 +0000 |
---|---|---|
committer | Travis Howell | 2005-04-10 03:50:17 +0000 |
commit | ae69af7ecfbd4b865fddcfc3a937ce561d6fdd6f (patch) | |
tree | b2db29a9fd473d67966a5be507386a3b496b1a41 | |
parent | 64d6c3cafae3439f6eec6aab945e627a18aa412e (diff) | |
download | scummvm-rg350-ae69af7ecfbd4b865fddcfc3a937ce561d6fdd6f.tar.gz scummvm-rg350-ae69af7ecfbd4b865fddcfc3a937ce561d6fdd6f.tar.bz2 scummvm-rg350-ae69af7ecfbd4b865fddcfc3a937ce561d6fdd6f.zip |
Pointer off by 8
svn-id: r17501
-rw-r--r-- | scumm/wiz_he.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/wiz_he.cpp b/scumm/wiz_he.cpp index fe37156c6a..cdf4589cd1 100644 --- a/scumm/wiz_he.cpp +++ b/scumm/wiz_he.cpp @@ -1325,10 +1325,10 @@ void ScummEngine_v72he::displayWizComplexImage(const WizParameters *params) { assert(iwiz); uint8 *rmap = findWrappedBlock(MKID('RMAP'), iwiz, st, 0) ; assert(rmap); - *(uint32 *)(rmap + 8) = TO_BE_32(0x12345678); + *(uint32 *)(rmap) = TO_BE_32(0x12345678); while (num--) { uint8 idx = *index++; - rmap[0xC + idx] = params->remapColor[idx]; + rmap[4 + idx] = params->remapColor[idx]; } } @@ -1556,10 +1556,10 @@ void ScummEngine_v90he::processWizImage(const WizParameters *params) { assert(iwiz); uint8 *rmap = findWrappedBlock(MKID('RMAP'), iwiz, state, 0) ; assert(rmap); - *(uint32 *)(rmap + 8) = TO_BE_32(0x12345678); + *(uint32 *)(rmap) = TO_BE_32(0x12345678); while (num--) { uint8 idx = *index++; - rmap[0xC + idx] = params->remapColor[idx]; + rmap[4 + idx] = params->remapColor[idx]; } } break; |