From 465331ceba750c82fd843d136060969ad4f9f2df Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 13 Jul 2004 10:18:06 +0000 Subject: Simpler method from _sev svn-id: r14203 --- scumm/palette.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scumm/palette.cpp b/scumm/palette.cpp index 6658acd97c..75a4a3477b 100644 --- a/scumm/palette.cpp +++ b/scumm/palette.cpp @@ -588,15 +588,17 @@ void ScummEngine::darkenPalette(int redScale, int greenScale, int blueScale, int if (startColor <= endColor) { const byte *cptr; + const byte *palptr; int color, idx, j; + palptr = getPalettePtr(_curPalIndex); for (j = startColor; j <= endColor; j++) { // FIXME: Hack to fix Amiga palette adjustments if ((_features & GF_AMIGA && _version == 5) && (j >= 16 && j < 81)) continue; idx = (_heversion == 70) ? _HEV7ActorPalette[j] : j; - cptr = getPalettePtr(_curPalIndex) + idx * 3; + cptr = palptr + idx * 3; if (_heversion == 70) setDirtyColors(idx, idx); -- cgit v1.2.3