aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorThierry Crozat2017-11-07 00:04:39 +0000
committerThierry Crozat2018-01-23 02:15:38 +0000
commit575aef711b5bfaeeb21c4ee1f9ad898a88ff7ce4 (patch)
treeff0cb06c8765abcdf61f041b91d707cdfcf42bac /engines
parentaf226daf81b90f72f6812c20263ed61024b91e35 (diff)
downloadscummvm-rg350-575aef711b5bfaeeb21c4ee1f9ad898a88ff7ce4.tar.gz
scummvm-rg350-575aef711b5bfaeeb21c4ee1f9ad898a88ff7ce4.tar.bz2
scummvm-rg350-575aef711b5bfaeeb21c4ee1f9ad898a88ff7ce4.zip
SUPERNOVA: Fix updating the palette brightness when the current image has no palette
Diffstat (limited to 'engines')
-rw-r--r--engines/supernova/supernova.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index 3c75e6e9cd..342709bb09 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -677,7 +677,7 @@ void SupernovaEngine::paletteBrightness() {
if (_currentImage->getPalette()) {
imagePalette = _currentImage->getPalette();
} else {
- imagePalette = palette;
+ imagePalette = palette + 48;
}
palette[i + 48] = (imagePalette[i] * _brightness) >> 8;
}