From 3a4dafeaa37226d652eb2e00f92ab73d0acc517e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 26 Apr 2005 15:42:35 +0000 Subject: desaturatePalette is V8 specific svn-id: r17827 --- scumm/palette.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scumm/palette.cpp') diff --git a/scumm/palette.cpp b/scumm/palette.cpp index 1ae057543f..3085c98f12 100644 --- a/scumm/palette.cpp +++ b/scumm/palette.cpp @@ -706,7 +706,7 @@ static int HSL2RGBHelper(int n1, int n2, int hue) { * components of the palette colors. It's used in CMI when Guybrush * walks from the beach towards the swamp. */ -void ScummEngine::desaturatePalette(int hueScale, int satScale, int lightScale, int startColor, int endColor) { +void ScummEngine_v8::desaturatePalette(int hueScale, int satScale, int lightScale, int startColor, int endColor) { if (startColor <= endColor) { const byte *cptr; @@ -925,8 +925,8 @@ const byte *ScummEngine::getPalettePtr(int palindex, int room) { cptr += _CLUT_offs; } else { cptr = findPalInPals(cptr + _PALS_offs, palindex); + assert(cptr); } - assert(cptr); return cptr; } -- cgit v1.2.3