diff --git a/Content.Client/EntryPoint.cs b/Content.Client/EntryPoint.cs index 86a9e5837f..88385112c6 100644 --- a/Content.Client/EntryPoint.cs +++ b/Content.Client/EntryPoint.cs @@ -195,11 +195,11 @@ namespace Content.Client var inputMan = IoCManager.Resolve(); ContentContexts.SetupContexts(inputMan.Contexts); + IoCManager.Resolve().Initialize(); IoCManager.Resolve().Initialize(); IoCManager.Resolve().Initialize(); IoCManager.Resolve().AddOverlay(new ParallaxOverlay()); IoCManager.Resolve().Initialize(); - IoCManager.Resolve().Initialize(); } public override void Update(ModUpdateLevel level, float frameTime) diff --git a/Content.Client/GameTicking/ClientGameTicker.cs b/Content.Client/GameTicking/ClientGameTicker.cs index a89611e48a..4ffa820e50 100644 --- a/Content.Client/GameTicking/ClientGameTicker.cs +++ b/Content.Client/GameTicking/ClientGameTicker.cs @@ -178,7 +178,7 @@ namespace Content.Client.GameTicking _tutorialButton = null; } - _gameHud.RootControl?.Parent.RemoveChild(_gameHud.RootControl); + _gameHud.RootControl.Parent?.RemoveChild(_gameHud.RootControl); _tickerState = TickerState.InLobby;