Fix crash on human deletion.

Fixes #568
This commit is contained in:
Pieter-Jan Briers
2020-01-26 19:52:09 +01:00
parent 1d98152953
commit 883c465a14

View File

@@ -66,6 +66,11 @@ namespace Content.Server.GameObjects
// Hey, it's descriptive.
private void DropIdAndPocketsIfWeNoLongerHaveAUniform()
{
if (Deleted)
{
return;
}
if (_inventory.GetSlotItem(Slots.INNERCLOTHING) != null)
{
return;