Make WipeMind() not crash if there is no mind to be wiped.
This commit is contained in:
@@ -27,7 +27,8 @@ namespace Content.Server.Players
|
||||
|
||||
public void WipeMind()
|
||||
{
|
||||
Mind.ChangeOwningPlayer(null);
|
||||
Mind?.ChangeOwningPlayer(null);
|
||||
Mind = null;
|
||||
}
|
||||
|
||||
public PlayerData(NetSessionId sessionId)
|
||||
|
||||
Reference in New Issue
Block a user