- fixed incomplete null pointer check.

This commit is contained in:
Christoph Oelckers 2018-06-17 10:53:55 +02:00
parent acdb7e391f
commit 1fdf6a20d1

View file

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