mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 13:41:05 +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,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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue