From c1b774e80908df51be96e3c5c9dc8e81cd643b85 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 17 Mar 2017 12:34:05 +0200 Subject: [PATCH] Fixed compilation with GCC/Clang src/p_glnodes.cpp:670:3: error: cannot jump from this goto statement to its label src/p_glnodes.cpp:682:4: error: cannot jump from this goto statement to its label --- src/p_glnodes.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_glnodes.cpp b/src/p_glnodes.cpp index d0f39536a..47700b1d1 100644 --- a/src/p_glnodes.cpp +++ b/src/p_glnodes.cpp @@ -662,6 +662,8 @@ static bool LoadNodes (FileReader * lump) static bool DoLoadGLNodes(FileReader ** lumps) { + int missing = 0; + if (!LoadGLVertexes(lumps[0]) || !LoadGLSegs(lumps[1]) || !LoadGLSubsectors(lumps[2]) || @@ -684,7 +686,7 @@ static bool DoLoadGLNodes(FileReader ** lumps) } // check whether the BSP covers all sidedefs completely. - int missing = CheckForMissingSegs(); + missing = CheckForMissingSegs(); if (missing > 0) { Printf("%d missing segs counted in GL nodes.\nThe BSP has to be rebuilt.\n", missing);