mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-14 00:21:34 +00:00
Fixed issue with extraction of built GL nodes
See https://mantis.zdoom.org/view.php?id=39
This commit is contained in:
parent
8e19dc8f10
commit
de6a66851e
1 changed files with 2 additions and 1 deletions
|
@ -123,7 +123,8 @@ void FNodeBuilder::Extract (node_t *&outNodes, int &nodeCount,
|
||||||
|
|
||||||
if (segs[i].Partner != DWORD_MAX)
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue