Fix null pointer crash when there is no actor

This commit is contained in:
dpjudas 2024-09-09 02:08:33 +02:00
commit 6c57283b25

View file

@ -130,7 +130,8 @@ void HWSprite::DrawSprite(HWDrawInfo *di, FRenderState &state, bool translucent)
state.SetRenderStyle(RenderStyle);
state.SetTextureMode(RenderStyle);
state.SetDepthFadeFalloff(actor->DepthFadeFalloff);
if (actor)
state.SetDepthFadeFalloff(actor->DepthFadeFalloff);
if (hw_styleflags == STYLEHW_NoAlphaTest)
{