From d9efeb206d872e4c5c958e3ba12c1a656fb8f5ae Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 10 Jan 2017 17:16:18 +0200 Subject: [PATCH] Fixed crash on loading GL nodes See http://mantis.zdoom.org/view.php?id=21 --- src/p_setup.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_setup.cpp b/src/p_setup.cpp index 8c8476be0..614ed92bd 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -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;