Fixed crash on loading GL nodes

See http://mantis.zdoom.org/view.php?id=21
This commit is contained in:
alexey.lysiuk 2017-01-10 17:16:18 +02:00
parent 46179936ec
commit d9efeb206d

View file

@ -1003,9 +1003,10 @@ void LoadZNodes(FileReaderBase &data, int glnodes)
line.v1 = line.v1 - &level.vertexes[0] + &newvertarray[0];
line.v2 = line.v2 - &level.vertexes[0] + &newvertarray[0];
}
level.vertexes = std::move(newvertarray);
}
level.vertexes = std::move(newvertarray);
// Read the subsectors
DWORD numSubs, currSeg;