- Duke/RR: Do nullptr test in ceilingspace_r() after receiving crash in Redneck Rampage Route 66 (do Duke for parity).

This commit is contained in:
Mitch Richters 2021-12-07 19:12:29 +11:00
parent 96867e15d5
commit a7e99a3bd1
2 changed files with 2 additions and 2 deletions

View file

@ -106,7 +106,7 @@ void SerializeActorGlobals(FSerializer& arc)
bool ceilingspace_d(sectortype* sectp)
{
if( (sectp->ceilingstat&1) && sectp->ceilingpal == 0 )
if (sectp && (sectp->ceilingstat&1) && sectp->ceilingpal == 0)
{
switch(sectp->ceilingpicnum)
{

View file

@ -53,7 +53,7 @@ void resetlanepics(void);
bool ceilingspace_r(sectortype* sectp)
{
if( (sectp->ceilingstat&1) && sectp->ceilingpal == 0 )
if (sectp && (sectp->ceilingstat&1) && sectp->ceilingpal == 0)
{
switch(sectp->ceilingpicnum)
{