mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
- fixed loop ordering in P_SetRenderSector.
This commit is contained in:
parent
8256f25a84
commit
9f550941d2
1 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue