diff options
-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; |