mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-06-04 03:00:47 +00:00
- fixed P_LoopSideDefs could crash on the second P_LoopSidedefs call if there were unconnected linedefs in the map.
git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@943 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
parent
67a7eefbb8
commit
a2b6d9c276
1 changed files with 6 additions and 3 deletions
|
@ -2243,9 +2243,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;
|
||||
}
|
||||
|
||||
|
@ -2290,6 +2291,8 @@ static void P_LoopSidedefs (bool firstloop)
|
|||
right = bestright;
|
||||
}
|
||||
}
|
||||
assert((unsigned)i<(unsigned)numsides);
|
||||
assert(right<(unsigned)numsides);
|
||||
sides[i].RightSide = right;
|
||||
sides[right].LeftSide = i;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue