Fix possible error with resetting linedef actions/tags

This commit is contained in:
spherallic 2023-02-02 10:54:09 +01:00
parent d92736ad2f
commit e6cff92056

View file

@ -1649,8 +1649,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
l.Tag = 0;
// reset hacky flat alignment
l.Front.Sector.UpdateFloorSurface();
l.Front.Sector.UpdateCeilingSurface();
if (l.Front.Sector != null)
{
l.Front.Sector.UpdateFloorSurface();
l.Front.Sector.UpdateCeilingSurface();
}
}
// Update cache values