aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);