mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 01:22:18 +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)
|
foreach (IVisualEventReceiver i in objs)
|
||||||
{
|
{
|
||||||
if (i is BaseVisualThing)
|
if (i is BaseVisualThing)
|
||||||
|
{
|
||||||
visiblethings.Remove((BaseVisualThing)i); // [ZZ] if any
|
visiblethings.Remove((BaseVisualThing)i); // [ZZ] if any
|
||||||
|
allthings.Remove(((BaseVisualThing)i).Thing);
|
||||||
|
}
|
||||||
i.OnDelete();
|
i.OnDelete();
|
||||||
}
|
}
|
||||||
PostAction();
|
PostAction();
|
||||||
|
|
Loading…
Reference in a new issue