aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/scene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/m4/scene.cpp')
-rw-r--r--engines/m4/scene.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/m4/scene.cpp b/engines/m4/scene.cpp
index 57d63c153a..0f684ebced 100644
--- a/engines/m4/scene.cpp
+++ b/engines/m4/scene.cpp
@@ -149,11 +149,11 @@ void Scene::showCodes() {
for (int i = 0; i < _walkSurface->width() * _walkSurface->height(); i++)
destP[i] = (srcP[i] & 0x10) ? 0xFF : 0;
- byte colors[256 * 4];
+ byte colors[256 * 3];
memset(colors, 0, sizeof(colors));
- colors[255 * 4 + 0] = 255;
- colors[255 * 4 + 1] = 255;
- colors[255 * 4 + 2] = 255;
+ colors[255 * 3 + 0] = 255;
+ colors[255 * 3 + 1] = 255;
+ colors[255 * 3 + 2] = 255;
_vm->_palette->setPalette(colors, 0, 256);
} else {
// MADS handling