diff --git a/planet/Objects.ocd/HUD.ocd/Controller.ocd/Script.c b/planet/Objects.ocd/HUD.ocd/Controller.ocd/Script.c index d5202c701..8eae2f605 100644 --- a/planet/Objects.ocd/HUD.ocd/Controller.ocd/Script.c +++ b/planet/Objects.ocd/HUD.ocd/Controller.ocd/Script.c @@ -442,6 +442,18 @@ public func Destruction() } } + if(hoverhelper) + hoverhelper->RemoveObject(); + if(lockbutton) + lockbutton->RemoveObject(); + + if(backpack) + for(var i=0; iRemoveObject(); + } + if(healthtube) healthtube->RemoveObject(); @@ -462,6 +474,10 @@ public func Destruction() HUDgoal->RemoveObject(); if(deco) deco->RemoveObject(); + + var crew = FindObjects(Find_ID(GUI_CrewSelector), Find_Owner(GetOwner())); + for(var o in crew) + o->RemoveObject(); } public func OnCrewDisabled(object clonk)