- fixed: FMultiPatchTexture::MakeTexture was missing a range check for the
special colormap index. SVN r1928 (trunk)
This commit is contained in:
parent
dcd4c7fe7a
commit
8390184839
5 changed files with 20 additions and 2 deletions
|
|
@ -429,7 +429,7 @@ BYTE *GetBlendMap(PalEntry blend, BYTE *blendwork)
|
|||
return TranslationToTable(TRANSLATION(TRANSLATION_Standard, 7))->Remap;
|
||||
|
||||
default:
|
||||
if (blend >= BLEND_SPECIALCOLORMAP1)
|
||||
if (blend >= BLEND_SPECIALCOLORMAP1 && blend < BLEND_SPECIALCOLORMAP1 + SpecialColormaps.Size())
|
||||
{
|
||||
return SpecialColormaps[blend - BLEND_SPECIALCOLORMAP1].Colormap;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue