Fixed issue with extraction of built GL nodes

See https://mantis.zdoom.org/view.php?id=39
This commit is contained in:
alexey.lysiuk 2017-01-12 16:24:55 +02:00
parent 8e19dc8f10
commit de6a66851e

View file

@ -123,7 +123,8 @@ void FNodeBuilder::Extract (node_t *&outNodes, int &nodeCount,
if (segs[i].Partner != DWORD_MAX)
{
outSegs[i].PartnerSeg = &outSegs[Segs[segs[i].Partner].storedseg];
const DWORD storedseg = Segs[segs[i].Partner].storedseg;
outSegs[i].PartnerSeg = DWORD_MAX == storedseg ? nullptr : &outSegs[storedseg];
}
else
{