diff options
author | Travis Howell | 2004-07-26 14:10:42 +0000 |
---|---|---|
committer | Travis Howell | 2004-07-26 14:10:42 +0000 |
commit | f8e0fb18ba5101dad5792506bc198f518623e8f4 (patch) | |
tree | 539ae49c1a0b213e8cd76d5b152f7ae59bcd4ca5 | |
parent | 5c2a7a7775e30bfca78748124082131c0c0b36d9 (diff) | |
download | scummvm-rg350-f8e0fb18ba5101dad5792506bc198f518623e8f4.tar.gz scummvm-rg350-f8e0fb18ba5101dad5792506bc198f518623e8f4.tar.bz2 scummvm-rg350-f8e0fb18ba5101dad5792506bc198f518623e8f4.zip |
Ooops, adjust for start value.
svn-id: r14337
-rw-r--r-- | scumm/palette.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/palette.cpp b/scumm/palette.cpp index 135a1e59e7..8db158dcdf 100644 --- a/scumm/palette.cpp +++ b/scumm/palette.cpp @@ -454,9 +454,9 @@ static inline uint colorWeight(int red, int green, int blue) { void ScummEngine::setupShadowPalette(int redScale, int greenScale, int blueScale, int startColor, int endColor, int start, int end) { const byte *basepal = getPalettePtr(_curPalIndex); - const byte *pal = basepal; const byte *compareptr; - byte *table = _shadowPalette; + const byte *pal = basepal + start * 3; + byte *table = _shadowPalette + start * 3; int i; // This is a correction of the patch supplied for BUG #588501. |