From 610ff3956e658c4ac3defc9131aeed80aa5afc16 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 8 Sep 2010 08:53:39 +0000 Subject: [PATCH] - fixed P_LoopSideDefs could crash on the second P_LoopSidedefs call if there were unconnected linedefs in the map. SVN r2716 (trunk) --- src/p_setup.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/p_setup.cpp b/src/p_setup.cpp index 02329bdb9..09d2d2e8d 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -2202,9 +2202,10 @@ static void P_LoopSidedefs (bool firstloop) right = sidetemp[right].b.first; - if (firstloop && right == NO_SIDE) - { // There is no right side! - Printf ("Line %d's right edge is unconnected\n", linemap[unsigned(line-lines)]); + if (right == NO_SIDE) + { + // There is no right side! + if (firstloop) Printf ("Line %d's right edge is unconnected\n", linemap[unsigned(line-lines)]); continue; }