- fixed: Extraction of partner segs was broken in the internal node builder.

SVN r2617 (trunk)
This commit is contained in:
Christoph Oelckers 2010-08-28 11:17:25 +00:00
parent 0d53867409
commit 5a9151d7d2

View file

@ -115,7 +115,15 @@ void FNodeBuilder::Extract (node_t *&outNodes, int &nodeCount,
for (i = 0; i < segCount; ++i)
{
outSegs[i] = *(seg_t *)&segs[i];
outSegExtras[i].PartnerSeg = segs[i].Partner;
if (segs[i].Partner != DWORD_MAX)
{
outSegExtras[i].PartnerSeg = Segs[segs[i].Partner].storedseg;
}
else
{
outSegExtras[i].PartnerSeg = DWORD_MAX;
}
}
}
else