From 2ee2b2ec69125ce8944dd62a867b5f44164fae10 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 10 Aug 2019 21:39:35 +0200 Subject: [PATCH] remove should remove the system --- MLEM.Ui/Elements/Element.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM.Ui/Elements/Element.cs b/MLEM.Ui/Elements/Element.cs index bddcb22..952caab 100644 --- a/MLEM.Ui/Elements/Element.cs +++ b/MLEM.Ui/Elements/Element.cs @@ -140,7 +140,7 @@ namespace MLEM.Ui.Elements { public void RemoveChild(Element element) { this.children.Remove(element); element.Parent = null; - element.PropagateUiSystem(this.System); + element.PropagateUiSystem(null); this.SetDirty(); }