- fix null pointer crash

This commit is contained in:
Magnus Norddahl 2018-05-06 02:31:58 +02:00
parent 099057b142
commit d667a0192a

View file

@ -1334,7 +1334,8 @@ void DFrameBuffer::DrawBlend(sector_t * viewsector)
if (players[consoleplayer].camera != nullptr)
{
player = players[consoleplayer].camera->player;
fullbright = (player->fixedcolormap != NOFIXEDCOLORMAP || player->extralight == INT_MIN || player->fixedlightlevel != -1);
if (player)
fullbright = (player->fixedcolormap != NOFIXEDCOLORMAP || player->extralight == INT_MIN || player->fixedlightlevel != -1);
}
// don't draw sector based blends when any fullbright screen effect is active.