Skip to content

Commit

Permalink
- another wallsprite crash fix: https://forum.zdoom.org/viewtopic.php…
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Feb 12, 2021
1 parent 7e68223 commit 4100251
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rendering/swrenderer/things/r_wallsprite.cpp
Expand Up @@ -168,7 +168,8 @@ namespace swrenderer

// Decals that are added to the scene must fade to black.
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);
}
Expand Down

0 comments on commit 4100251

Please sign in to comment.