From 2e7496888a578bc86eee15937a6ffb4a79074992 Mon Sep 17 00:00:00 2001 From: Mitch Richters Date: Fri, 3 Dec 2021 17:45:11 +1100 Subject: [PATCH] - Duke: Re-add lost nullptr check in `prelevel_d()` that was causing a crash while loading Duke Nukem's Penthouse Paradise. --- source/games/duke/src/premap_d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/premap_d.cpp b/source/games/duke/src/premap_d.cpp index 198483c3a..03254d7bf 100644 --- a/source/games/duke/src/premap_d.cpp +++ b/source/games/duke/src/premap_d.cpp @@ -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;