From 448e66f19b164104778ab57f603cce73f8e3925d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 13 Mar 2016 16:57:02 +0100 Subject: [PATCH] - fixed: P_PointInSectorBuggy must handle the single-subsector special case. --- src/p_maputl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/p_maputl.cpp b/src/p_maputl.cpp index b55989c97..2670ead2c 100644 --- a/src/p_maputl.cpp +++ b/src/p_maputl.cpp @@ -1980,6 +1980,10 @@ int P_VanillaPointOnDivlineSide(fixed_t x, fixed_t y, const divline_t* line) sector_t *P_PointInSectorBuggy(fixed_t x, fixed_t y) { + // single subsector is a special case + if (numgamenodes == 0) + return gamesubsectors->sector; + node_t *node = gamenodes + numgamenodes - 1; do