- fixed loop ordering in P_SetRenderSector.

This commit is contained in:
Christoph Oelckers 2017-01-19 01:39:05 +01:00
parent 8256f25a84
commit 9f550941d2

View file

@ -1456,13 +1456,12 @@ void P_SetRenderSector()
segs[i].PartnerSeg = segs[i].PartnerSeg->PartnerSeg = nullptr;
}
}
for (i = 0; i < numsegs; i++)
}
for (i = 0; i < numsegs; i++)
{
if (segs[i].PartnerSeg != nullptr && segs[i].PartnerSeg->PartnerSeg != &segs[i])
{
if (segs[i].PartnerSeg != nullptr && segs[i].PartnerSeg->PartnerSeg != &segs[i])
{
segs[i].PartnerSeg = nullptr;
}
segs[i].PartnerSeg = nullptr;
}
}