mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- Duke: Add nullptr check to haskey()
.
This commit is contained in:
parent
b422b049c1
commit
9de4b4753a
1 changed files with 2 additions and 0 deletions
|
@ -974,6 +974,8 @@ bool movementBlocked(player_struct *p)
|
|||
int haskey(sectortype* sectp, int snum)
|
||||
{
|
||||
auto p = &ps[snum];
|
||||
if (!sectp)
|
||||
return 0;
|
||||
if (!sectp->keyinfo)
|
||||
return 1;
|
||||
if (sectp->keyinfo > 6)
|
||||
|
|
Loading…
Reference in a new issue