diff options
Diffstat (limited to 'engines/m4/woodscript.cpp')
-rw-r--r-- | engines/m4/woodscript.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/m4/woodscript.cpp b/engines/m4/woodscript.cpp index f45e8fa8a2..1235cc9cb6 100644 --- a/engines/m4/woodscript.cpp +++ b/engines/m4/woodscript.cpp @@ -321,12 +321,12 @@ void WoodScript::update() { { // FIXME: This should be done when a new palette is set - byte palette[1024]; + byte palette[768]; g_system->getPaletteManager()->grabPalette(palette, 0, 256); for (int i = 0; i < 256; i++) { - _mainPalette[i].r = palette[i * 4 + 0]; - _mainPalette[i].g = palette[i * 4 + 1]; - _mainPalette[i].b = palette[i * 4 + 2]; + _mainPalette[i].r = palette[i * 3 + 0]; + _mainPalette[i].g = palette[i * 3 + 1]; + _mainPalette[i].b = palette[i * 3 + 2]; } } |