Skip to content

Commit

Permalink
Fix null pointer crash when there is no actor
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Sep 9, 2024
1 parent f41e7f0 commit 6c57283
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rendering/hwrenderer/scene/hw_sprites.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 6c57283

Please sign in to comment.