mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 13:51:40 +00:00
Fixed a crash that would happen when the line slope things (9500/9501) are used but the linedef they are tagged to doesn't have a front sidedef. Fixes #398.
This commit is contained in:
parent
999d5ade9e
commit
ac73ca7422
1 changed files with 4 additions and 1 deletions
|
@ -1039,7 +1039,10 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
foreach(Linedef ld in linetags[t.Args[0]])
|
||||
{
|
||||
if (ld.Line.GetSideOfLine(t.Position) < 0.0f)
|
||||
GetSectorData(ld.Front.Sector).AddEffectThingLineSlope(t, ld.Front);
|
||||
{
|
||||
if(ld.Front != null)
|
||||
GetSectorData(ld.Front.Sector).AddEffectThingLineSlope(t, ld.Front);
|
||||
}
|
||||
else if (ld.Back != null)
|
||||
GetSectorData(ld.Back.Sector).AddEffectThingLineSlope(t, ld.Back);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue