From 883c465a14a99a6db32a6aedbccc542f25c7e6ee Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sun, 26 Jan 2020 19:52:09 +0100 Subject: [PATCH] Fix crash on human deletion. Fixes #568 --- .../Components/GUI/HumanInventoryControllerComponent.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Content.Server/GameObjects/Components/GUI/HumanInventoryControllerComponent.cs b/Content.Server/GameObjects/Components/GUI/HumanInventoryControllerComponent.cs index 7422355f79..a22e4d32d7 100644 --- a/Content.Server/GameObjects/Components/GUI/HumanInventoryControllerComponent.cs +++ b/Content.Server/GameObjects/Components/GUI/HumanInventoryControllerComponent.cs @@ -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;