Fix crash in GetDynSpriteLight when the actor is null

This commit is contained in:
Magnus Norddahl 2021-10-08 21:47:43 +02:00
parent 635a279186
commit b59bd46b79

View file

@ -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)