Fix exceptions from deleting pilot chair with player in it.

This commit is contained in:
Pieter-Jan Briers
2020-05-23 22:51:41 +02:00
parent 36b5326a37
commit 82b7a09880
2 changed files with 4 additions and 4 deletions

View File

@@ -133,11 +133,11 @@ namespace Content.Server.GameObjects.Components.Movement
if (!removed)
{
mindComp.Mind.Visit(Owner);
mindComp.Mind?.Visit(Owner);
}
else
{
mindComp.Mind.UnVisit();
mindComp.Mind?.UnVisit();
}
}
}