[Scummvm-git-logs] scummvm master -> 5b401519ebebe22360473a738c805a551114fa6a

sev- sev at scummvm.org
Fri Oct 11 17:26:21 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5b401519eb PINK: Fix uninitalised reads


Commit: 5b401519ebebe22360473a738c805a551114fa6a
    https://github.com/scummvm/scummvm/commit/5b401519ebebe22360473a738c805a551114fa6a
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2019-10-11T17:25:41+02:00

Commit Message:
PINK: Fix uninitalised reads

Changed paths:
    engines/pink/objects/actions/action_text.cpp


diff --git a/engines/pink/objects/actions/action_text.cpp b/engines/pink/objects/actions/action_text.cpp
index cd1178c..0c98893 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);





More information about the Scummvm-git-logs mailing list