- fixed incomplete null pointer check.

This commit is contained in:
Christoph Oelckers 2018-06-17 10:53:55 +02:00
parent acdb7e391f
commit 1fdf6a20d1
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ int HWDrawInfo::SetFullbrightFlags(player_t *player)
FullbrightFlags = 0;
// check for special colormaps
player_t * cplayer = player->camera->player;
player_t * cplayer = player? player->camera->player : nullptr;
if (cplayer)
{
int cm = CM_DEFAULT;