diff options
author | Eugene Sandulenko | 2019-10-11 17:25:41 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-10-11 17:25:41 +0200 |
commit | 5b401519ebebe22360473a738c805a551114fa6a (patch) | |
tree | abdd1cb7ecc5d086378229b07a39887cf9658e30 /engines/pink | |
parent | e3716a9521a05fed3b0890c6949d721f47603985 (diff) | |
download | scummvm-rg350-5b401519ebebe22360473a738c805a551114fa6a.tar.gz scummvm-rg350-5b401519ebebe22360473a738c805a551114fa6a.tar.bz2 scummvm-rg350-5b401519ebebe22360473a738c805a551114fa6a.zip |
PINK: Fix uninitalised reads
Diffstat (limited to 'engines/pink')
-rw-r--r-- | engines/pink/objects/actions/action_text.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |