From bcd73292d394e562a9ea7e99f32e75c355954712 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 12 Jan 2017 09:58:13 +0100 Subject: [PATCH] - checked P_GetRenderSector against the original implementation from before the glsegextras were added and reinstated all checks from that version. --- src/p_glnodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_glnodes.cpp b/src/p_glnodes.cpp index 0860c98b8f..862aafeb43 100644 --- a/src/p_glnodes.cpp +++ b/src/p_glnodes.cpp @@ -1443,7 +1443,7 @@ void P_SetRenderSector() { int partner = (int)(p - segs); - if (partner < 0 || partner >= numsegs) + if (partner < 0 || partner >= numsegs || &segs[partner] != p) { segs[i].PartnerSeg = nullptr; }