Seems sprites can have no actor

This commit is contained in:
Magnus Norddahl 2025-07-10 06:34:00 +02:00
commit a42e322aa0

View file

@ -119,7 +119,7 @@ void HWSprite::DrawSprite(HWDrawInfo *di, FRenderState &state, bool translucent)
int rel = fullbright ? 0 : getExtraLight();
auto &vp = di->Viewpoint;
state.SetLightProbeIndex(actor->Sector ? actor->Sector->lightProbe.index : 0);
state.SetLightProbeIndex(actor && actor->Sector ? actor->Sector->lightProbe.index : 0);
if (translucent)
{