aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-10-11 17:25:41 +0200
committerEugene Sandulenko2019-10-11 17:25:41 +0200
commit5b401519ebebe22360473a738c805a551114fa6a (patch)
treeabdd1cb7ecc5d086378229b07a39887cf9658e30 /engines
parente3716a9521a05fed3b0890c6949d721f47603985 (diff)
downloadscummvm-rg350-5b401519ebebe22360473a738c805a551114fa6a.tar.gz
scummvm-rg350-5b401519ebebe22360473a738c805a551114fa6a.tar.bz2
scummvm-rg350-5b401519ebebe22360473a738c805a551114fa6a.zip
PINK: Fix uninitalised reads
Diffstat (limited to 'engines')
-rw-r--r--engines/pink/objects/actions/action_text.cpp2
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);