mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
SCI32: Fix incorrect double-read from CLUT
This commit is contained in:
parent
657edcf84e
commit
5917467c1b
@ -1017,7 +1017,10 @@ void GfxFrameout::alterVmap(const Palette &palette1, const Palette &palette2, co
|
||||
int8 styleRangeValue = styleRanges[currentValue];
|
||||
if (styleRangeValue == -1 && styleRangeValue == style) {
|
||||
currentValue = pixels[pixelIndex] = clut[currentValue];
|
||||
styleRangeValue = styleRanges[clut[currentValue]];
|
||||
// NOTE: In original engine this assignment happens outside of the
|
||||
// condition, but if the branch is not followed the value is just
|
||||
// going to be the same as it was before
|
||||
styleRangeValue = styleRanges[currentValue];
|
||||
}
|
||||
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user