Make WipeMind() not crash if there is no mind to be wiped.

This commit is contained in:
Pieter-Jan Briers
2018-11-25 12:52:31 +01:00
parent 9780cf9062
commit f887d22a16

View File

@@ -27,7 +27,8 @@ namespace Content.Server.Players
public void WipeMind()
{
Mind.ChangeOwningPlayer(null);
Mind?.ChangeOwningPlayer(null);
Mind = null;
}
public PlayerData(NetSessionId sessionId)