mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- fixed incomplete null pointer check.
This commit is contained in:
parent
acdb7e391f
commit
1fdf6a20d1
1 changed files with 1 additions and 1 deletions
|
@ -416,7 +416,7 @@ int HWDrawInfo::SetFullbrightFlags(player_t *player)
|
|||
FullbrightFlags = 0;
|
||||
|
||||
// check for special colormaps
|
||||
player_t * cplayer = player->camera->player;
|
||||
player_t * cplayer = player? player->camera->player : nullptr;
|
||||
if (cplayer)
|
||||
{
|
||||
int cm = CM_DEFAULT;
|
||||
|
|
Loading…
Reference in a new issue