mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-21 03:11:40 +00:00
@ fixed potential crash when using undo/redo in visual mode
This commit is contained in:
parent
0a10e5bfef
commit
8c91bc30ab
1 changed files with 2 additions and 2 deletions
|
@ -546,7 +546,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Go for all sidedefs to update
|
||||
foreach(Sidedef sd in General.Map.Map.Sidedefs)
|
||||
{
|
||||
if(sd.Marked)
|
||||
if(sd.Marked && VisualSectorExists(sd.Sector))
|
||||
{
|
||||
BaseVisualSector vs = (BaseVisualSector)GetVisualSector(sd.Sector);
|
||||
VisualSidedefParts parts = vs.GetSidedefParts(sd);
|
||||
|
@ -557,7 +557,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Go for all sectors to update
|
||||
foreach(Sector s in General.Map.Map.Sectors)
|
||||
{
|
||||
if(s.Marked)
|
||||
if(s.Marked && VisualSectorExists(s))
|
||||
{
|
||||
BaseVisualSector vs = (BaseVisualSector)GetVisualSector(s);
|
||||
vs.Floor.Setup();
|
||||
|
|
Loading…
Reference in a new issue