This commit is contained in:
Rachael Alexanderson 2021-02-12 06:49:47 -05:00
parent 7e68223794
commit 4100251e25

View file

@ -168,7 +168,8 @@ namespace swrenderer
// Decals that are added to the scene must fade to black. // Decals that are added to the scene must fade to black.
ColormapLight cmlight; ColormapLight cmlight;
if (spr->RenderStyle == LegacyRenderStyles[STYLE_Add] && cmlight.BaseColormap->Fade != 0) if ((cmlight.BaseColormap) &&
(spr->RenderStyle == LegacyRenderStyles[STYLE_Add] && cmlight.BaseColormap->Fade != 0))
{ {
cmlight.BaseColormap = GetSpecialLights(cmlight.BaseColormap->Color, 0, cmlight.BaseColormap->Desaturate); cmlight.BaseColormap = GetSpecialLights(cmlight.BaseColormap->Color, 0, cmlight.BaseColormap->Desaturate);
} }