From b59bd46b798b635be306a160b4d215b6976e4dbb Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 8 Oct 2021 21:47:43 +0200 Subject: [PATCH] Fix crash in GetDynSpriteLight when the actor is null --- src/rendering/hwrenderer/scene/hw_spritelight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/hwrenderer/scene/hw_spritelight.cpp b/src/rendering/hwrenderer/scene/hw_spritelight.cpp index b928e209b..2b93c912e 100644 --- a/src/rendering/hwrenderer/scene/hw_spritelight.cpp +++ b/src/rendering/hwrenderer/scene/hw_spritelight.cpp @@ -57,7 +57,7 @@ void HWDrawInfo::GetDynSpriteLight(AActor *self, float x, float y, float z, FLig float frac, lr, lg, lb; float radius; - self->Level->GetLightProbeLight(x, y, z, out); + Level->GetLightProbeLight(x, y, z, out); // Go through both light lists while (node)