From ff9513a814ca99f1a403865d4f3b38709b30ad00 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 10 Jan 2017 22:21:57 +0100 Subject: [PATCH] Revert "- fixed: The stair builder code tried to access a member of a null pointer after finding no more stair sectors." This reverts commit 9eb27303289a6a2b3ac740235f2359efefe2afbb. This fix doesn't apply to 'maint'. --- src/p_floor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_floor.cpp b/src/p_floor.cpp index 5c21f771d..68602ab0a 100644 --- a/src/p_floor.cpp +++ b/src/p_floor.cpp @@ -663,8 +663,9 @@ bool EV_BuildStairs (int tag, DFloor::EStair type, line_t *line, sec = tsec; continue; } - newsecnum = tsec->Index(); + } + newsecnum = (int)(tsec - sectors); } else {