From 4100251e25389f8cda26b69eb13fc3a0e35c1aa6 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Fri, 12 Feb 2021 06:49:47 -0500 Subject: [PATCH] - another wallsprite crash fix: https://forum.zdoom.org/viewtopic.php?f=56&t=71450 --- src/rendering/swrenderer/things/r_wallsprite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rendering/swrenderer/things/r_wallsprite.cpp b/src/rendering/swrenderer/things/r_wallsprite.cpp index 8ebf68dda..ce0ada698 100644 --- a/src/rendering/swrenderer/things/r_wallsprite.cpp +++ b/src/rendering/swrenderer/things/r_wallsprite.cpp @@ -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); }