Fix null pointer crash when there is no actor
This commit is contained in:
parent
f41e7f044a
commit
6c57283b25
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue