Fixed GameMain.Server.Character not being set to null when the character is removed. Closes #488

This commit is contained in:
Joonas Rikkonen
2018-07-18 13:05:58 +03:00
parent cbb207dbca
commit af4d60db1d
@@ -206,8 +206,8 @@ namespace Barotrauma
{
GameMain.GameSession.CrewManager.RemoveCharacter(this);
}
if (GameMain.Client != null && GameMain.Client.Character == this) GameMain.Client.Character = null;
if (GameMain.NetworkMember?.Character == this) GameMain.NetworkMember.Character = null;
if (Lights.LightManager.ViewTarget == this) Lights.LightManager.ViewTarget = null;
}