- fix null pointer crash

This commit is contained in:
Magnus Norddahl 2018-05-06 02:31:58 +02:00
parent 099057b142
commit d667a0192a
1 changed files with 2 additions and 1 deletions

View File

@ -1334,6 +1334,7 @@ void DFrameBuffer::DrawBlend(sector_t * viewsector)
if (players[consoleplayer].camera != nullptr)
{
player = players[consoleplayer].camera->player;
if (player)
fullbright = (player->fixedcolormap != NOFIXEDCOLORMAP || player->extralight == INT_MIN || player->fixedlightlevel != -1);
}