Fixed GameMain.Server.Character not being set to null when the character is removed. Closes #488
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user