- Duke: Re-add lost nullptr check in prelevel_d() that was causing a crash while loading Duke Nukem's Penthouse Paradise.

This commit is contained in:
Mitch Richters 2021-12-03 17:45:11 +11:00 committed by Christoph Oelckers
parent 81268cb9b6
commit 2e7496888a

View file

@ -389,7 +389,7 @@ void prelevel_d(int g)
if (mirrorcnt > 63)
I_Error("Too many mirrors (64 max.)");
if (sectp->ceilingpicnum != MIRROR)
if (sectp && sectp->ceilingpicnum != MIRROR)
{
assert(wallnum(&wal) > 0);
sectp->ceilingpicnum = MIRROR;