- added missing nullptr check.

This commit is contained in:
Christoph Oelckers 2016-09-12 23:03:27 +02:00
parent 3778799f92
commit c593dda8f3

View file

@ -375,7 +375,7 @@ void GLSprite::Draw(int pass)
gl_RenderState.Apply();
FVector3 v[4];
if ((actor->renderflags & RF_SPRITETYPEMASK) == RF_FLATSPRITE)
if (actor != nullptr && (actor->renderflags & RF_SPRITETYPEMASK) == RF_FLATSPRITE)
{
}
else