From 5b401519ebebe22360473a738c805a551114fa6a Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 11 Oct 2019 17:25:41 +0200 Subject: PINK: Fix uninitalised reads --- engines/pink/objects/actions/action_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/pink/objects/actions/action_text.cpp b/engines/pink/objects/actions/action_text.cpp index cd1178c5ef..0c9889377b 100644 --- a/engines/pink/objects/actions/action_text.cpp +++ b/engines/pink/objects/actions/action_text.cpp @@ -161,7 +161,7 @@ static uint findBestColor(byte *palette, uint32 rgb) { void ActionText::findColorsInPalette() { byte palette[256 * 3]; - g_system->getPaletteManager()->grabPalette(palette, 0, 255); + g_system->getPaletteManager()->grabPalette(palette, 0, 256); _textColorIndex = findBestColor(palette, _textRGB); _backgroundColorIndex = findBestColor(palette, _backgroundRGB); -- cgit v1.2.3