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