mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- another wallsprite crash fix: https://forum.zdoom.org/viewtopic.php?f=56&t=71450
This commit is contained in:
parent
7e68223794
commit
4100251e25
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue