Fixed GameMain.Server.Character not being set to null when the character is removed. Closes #488
This commit is contained in:
@@ -207,7 +207,7 @@ namespace Barotrauma
|
|||||||
GameMain.GameSession.CrewManager.RemoveCharacter(this);
|
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;
|
if (Lights.LightManager.ViewTarget == this) Lights.LightManager.ViewTarget = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user