From 47171c7829312f032ad67a1fda5ce00360e9fcf4 Mon Sep 17 00:00:00 2001 From: michi_cc Date: Mon, 26 Dec 2011 14:53:19 +0000 Subject: (svn r23674) -Fix (r23670): Don't read invalid memory in the 32bpp simple blitter. --- src/blitter/32bpp_simple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blitter/32bpp_simple.cpp b/src/blitter/32bpp_simple.cpp index fa6155d74..3a80fe991 100644 --- a/src/blitter/32bpp_simple.cpp +++ b/src/blitter/32bpp_simple.cpp @@ -122,7 +122,7 @@ Sprite *Blitter_32bppSimple::Encode(SpriteLoader::Sprite *sprite, AllocatorProc dst[i].v = rgb_max; /* Pre-convert the mapping channel to a RGB value */ - uint colour = this->AdjustBrightness(this->LookupColourInPalette(src[i].m), dst[i].v); + uint colour = this->AdjustBrightness(this->LookupColourInPalette(src->m), dst[i].v); dst[i].r = GB(colour, 16, 8); dst[i].g = GB(colour, 8, 8); dst[i].b = GB(colour, 0, 8); -- cgit v1.2.3-70-g09d2