mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fix null pointer crash
This commit is contained in:
parent
099057b142
commit
d667a0192a
1 changed files with 2 additions and 1 deletions
|
@ -1334,7 +1334,8 @@ 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;
|
||||||
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.
|
// don't draw sector based blends when any fullbright screen effect is active.
|
||||||
|
|
Loading…
Reference in a new issue