From 26170419f428649208c1d28f78d8fe442361f5be Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 9 Jan 2017 23:23:26 +0100 Subject: [PATCH] - fixed: The stair builder code tried to access a member of a null pointer after finding no more stair sectors. --- src/p_floor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/p_floor.cpp b/src/p_floor.cpp index 48c73f131..d81ec8bf4 100644 --- a/src/p_floor.cpp +++ b/src/p_floor.cpp @@ -663,9 +663,8 @@ bool EV_BuildStairs (int tag, DFloor::EStair type, line_t *line, sec = tsec; continue; } - + newsecnum = tsec->Index(); } - newsecnum = tsec->sectornum; } else {