Seems sprites can have no actor
This commit is contained in:
parent
d0dc14c2c7
commit
a42e322aa0
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue