mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
Pointer off by 8
svn-id: r17501
This commit is contained in:
parent
64d6c3cafa
commit
ae69af7ecf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user