aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads/game.cpp')
-rw-r--r--engines/mads/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/game.cpp b/engines/mads/game.cpp
index dde2b405ab..b544eff2db 100644
--- a/engines/mads/game.cpp
+++ b/engines/mads/game.cpp
@@ -580,8 +580,8 @@ void Game::createThumbnail() {
delete _saveThumb;
}
- uint8 thumbPalette[256 * 3];
- _vm->_palette->grabPalette(thumbPalette, 0, 256);
+ uint8 thumbPalette[PALETTE_SIZE];
+ _vm->_palette->grabPalette(thumbPalette, 0, PALETTE_COUNT);
_saveThumb = new Graphics::Surface();
::createThumbnail(_saveThumb, _vm->_screen.getData(), MADS_SCREEN_WIDTH, MADS_SCREEN_HEIGHT, thumbPalette);
}