Fix crash

This commit is contained in:
Simon 2020-04-03 23:03:01 +01:00
parent 73a7bbf707
commit d3c4f71d5b

View file

@ -322,7 +322,8 @@ void GLSceneDrawer::DrawPlayerSprites(sector_t * viewsector, bool hudModelStep)
!r_drawplayersprites ||
!camera->player ||
(player->cheats & CF_CHASECAM) ||
(r_deathcamera && camera->health <= 0))
(r_deathcamera && camera->health <= 0) ||
viewsector == nullptr)
return;
if (!hudModelStep)