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
This commit is contained in:
alexey.lysiuk 2017-03-17 12:34:05 +02:00
parent 309d086a15
commit c1b774e809

View file

@ -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);