- checked P_GetRenderSector against the original implementation from before the glsegextras were added and reinstated all checks from that version.

This commit is contained in:
Christoph Oelckers 2017-01-12 09:58:13 +01:00
parent 0d575a20cc
commit bcd73292d3

View file

@ -1443,7 +1443,7 @@ void P_SetRenderSector()
{ {
int partner = (int)(p - segs); int partner = (int)(p - segs);
if (partner < 0 || partner >= numsegs) if (partner < 0 || partner >= numsegs || &segs[partner] != p)
{ {
segs[i].PartnerSeg = nullptr; segs[i].PartnerSeg = nullptr;
} }