From d81542752a2c3e637ab1bddb1a6bc8a086ca687b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 9 Apr 2012 09:01:25 +0000 Subject: [PATCH] - fixed: P_FindFloorCeiling may not use the floorsector returned by P_LineOpening when only checking 3D-floors because it will be NULL. SVN r3547 (trunk) --- src/p_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_map.cpp b/src/p_map.cpp index 9f8cc6271..92b2cb035 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -149,7 +149,7 @@ static bool PIT_FindFloorCeiling (line_t *ld, const FBoundingBox &box, FCheckPos if (open.bottom > tmf.floorz) { tmf.floorz = open.bottom; - tmf.floorsector = open.bottomsec; + if (open.bottomsec != NULL) tmf.floorsector = open.bottomsec; tmf.touchmidtex = open.touchmidtex; tmf.abovemidtex = open.abovemidtex; }