From 2ccaea811f7c1859fc474eda92e7ceb48b3d5adf Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 20 Apr 2014 11:32:55 -0400 Subject: MADS: Fix update of palette due to palette cycling --- engines/mads/scene.cpp | 5 +++-- 1 file 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; -- cgit v1.2.3