diff options
author | Paul Gilbert | 2014-04-20 11:32:55 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-04-20 11:32:55 -0400 |
commit | 2ccaea811f7c1859fc474eda92e7ceb48b3d5adf (patch) | |
tree | d303113b244d6a849ed33e774d22608b7fe40fe5 | |
parent | a31cae55a113e2103d6e5359bd27f64f84c16ed5 (diff) | |
download | scummvm-rg350-2ccaea811f7c1859fc474eda92e7ceb48b3d5adf.tar.gz scummvm-rg350-2ccaea811f7c1859fc474eda92e7ceb48b3d5adf.tar.bz2 scummvm-rg350-2ccaea811f7c1859fc474eda92e7ceb48b3d5adf.zip |
MADS: Fix update of palette due to palette cycling
-rw-r--r-- | engines/mads/scene.cpp | 5 |
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; |