aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/scene.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-20 11:32:55 -0400
committerPaul Gilbert2014-04-20 11:32:55 -0400
commit2ccaea811f7c1859fc474eda92e7ceb48b3d5adf (patch)
treed303113b244d6a849ed33e774d22608b7fe40fe5 /engines/mads/scene.cpp
parenta31cae55a113e2103d6e5359bd27f64f84c16ed5 (diff)
downloadscummvm-rg350-2ccaea811f7c1859fc474eda92e7ceb48b3d5adf.tar.gz
scummvm-rg350-2ccaea811f7c1859fc474eda92e7ceb48b3d5adf.tar.bz2
scummvm-rg350-2ccaea811f7c1859fc474eda92e7ceb48b3d5adf.zip
MADS: Fix update of palette due to palette cycling
Diffstat (limited to 'engines/mads/scene.cpp')
-rw-r--r--engines/mads/scene.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index 40a0a8f106..e6888162d3 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -304,8 +304,9 @@ void Scene::animatePalette() {
}
if (changesFlag) {
- _vm->_palette->setPalette(_vm->_palette->_cyclingPalette,
- _paletteCycles[0]._firstColorIndex, _totalCycleColors);
+ int firstColor = _paletteCycles[0]._firstColorIndex;
+ byte *pSrc = &_vm->_palette->_cyclingPalette[firstColor * 3];
+ _vm->_palette->setPalette(pSrc, firstColor, _totalCycleColors);
}
_cyclingDelay = 0;