mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 09:32:34 +00:00
fixed crash when old disposed geometry was used after geometry merging in drawing mode
This commit is contained in:
parent
54940886fd
commit
88b1cacf2e
1 changed files with 6 additions and 0 deletions
|
@ -1142,6 +1142,12 @@ namespace CodeImp.DoomBuilder.Geometry
|
|||
// but their Marked property is copied where they have joined.
|
||||
newlines = map.GetMarkedLinedefs(true);
|
||||
|
||||
// Remove any disposed old lines
|
||||
List<Linedef> prevoldlines = oldlines;
|
||||
oldlines = new List<Linedef>(prevoldlines.Count);
|
||||
foreach(Linedef ld in prevoldlines)
|
||||
if(!ld.IsDisposed) oldlines.Add(ld);
|
||||
|
||||
/***************************************************\
|
||||
STEP 3: Join and create new sectors
|
||||
\***************************************************/
|
||||
|
|
Loading…
Reference in a new issue