Mercurial > hg > openttd
changeset 18825:ba83f93a06e8 draft
(svn r23674) -Fix (r23670): Don't read invalid memory in the 32bpp simple blitter.
author | michi_cc <michi_cc@openttd.org> |
---|---|
date | Mon, 26 Dec 2011 14:53:19 +0000 |
parents | c95e99a2ae7c |
children | 72a6a2eadf4e |
files | src/blitter/32bpp_simple.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/blitter/32bpp_simple.cpp +++ b/src/blitter/32bpp_simple.cpp @@ -122,7 +122,7 @@ 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);