mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-22 20:02:48 +00:00
Visual Mode: fixed an issue where deleting a thing could cause a crash. Fixes #730
This commit is contained in:
parent
44a2a0daae
commit
ccdbc28ed8
1 changed files with 5 additions and 2 deletions
|
@ -3851,7 +3851,10 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
foreach (IVisualEventReceiver i in objs)
|
||||
{
|
||||
if (i is BaseVisualThing)
|
||||
{
|
||||
visiblethings.Remove((BaseVisualThing)i); // [ZZ] if any
|
||||
allthings.Remove(((BaseVisualThing)i).Thing);
|
||||
}
|
||||
i.OnDelete();
|
||||
}
|
||||
PostAction();
|
||||
|
|
Loading…
Reference in a new issue