From 80f1a63cc9638d204f43f4f0c1ecb94a6bd50b48 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 28 Aug 2010 12:00:42 +0000 Subject: [PATCH] - fixed: The textured automap node initialization code could crash on maps that only have single isolated sectors. SVN r2618 (trunk) --- src/p_glnodes.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/p_glnodes.cpp b/src/p_glnodes.cpp index f08ef55ed6..d7332def21 100644 --- a/src/p_glnodes.cpp +++ b/src/p_glnodes.cpp @@ -1414,6 +1414,19 @@ void P_SetRenderSector() #endif // Check for incorrect partner seg info so that the following code does not crash. + if (glsegextras == NULL) + { + // This can be normal nodes, mistakenly identified as GL nodes so we must fill + // in the missing pieces differently. + + for (i = 0; i < numsubsectors; i++) + { + ss = &subsectors[i]; + ss->render_sector = ss->sector; + } + return; + } + for(i=0;i