- fixed P_LoopSideDefs could crash on the second P_LoopSidedefs call if there were unconnected linedefs in the map.

SVN r2716 (trunk)
This commit is contained in:
Christoph Oelckers 2010-09-08 08:53:39 +00:00
parent ce2c2bd825
commit 610ff3956e

View file

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