Fix crash related to game HUD upon joining.

This commit is contained in:
Pieter-Jan Briers
2019-07-26 17:56:07 +02:00
parent ff90bb4802
commit c635aeba79

View File

@@ -91,6 +91,7 @@ namespace Content.Client.GameTicking
_lobby = null;
_gameChat?.Dispose();
_gameChat = null;
_gameHud.RootControl.Orphan();
}
public void FrameUpdate(RenderFrameEventArgs renderFrameEventArgs)
@@ -171,7 +172,7 @@ namespace Content.Client.GameTicking
_gameChat = null;
}
_gameHud.RootControl.Parent?.RemoveChild(_gameHud.RootControl);
_gameHud.RootControl.Orphan();
_tickerState = TickerState.InLobby;