From 8e54ea42e6cc4514397724d472699df9968f94dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Aguilera=20Puerto?= Date: Sat, 22 Aug 2020 13:41:35 +0200 Subject: [PATCH] Fix rare crash when deleting airlock while the deny animation is playing --- Content.Client/GameObjects/Components/Wires/WiresVisualizer.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Client/GameObjects/Components/Wires/WiresVisualizer.cs b/Content.Client/GameObjects/Components/Wires/WiresVisualizer.cs index b914242184..ad1132652b 100644 --- a/Content.Client/GameObjects/Components/Wires/WiresVisualizer.cs +++ b/Content.Client/GameObjects/Components/Wires/WiresVisualizer.cs @@ -10,6 +10,9 @@ namespace Content.Client.GameObjects.Components.Wires { base.OnChangeData(component); + if (component.Owner.Deleted) + return; + var sprite = component.Owner.GetComponent(); if (component.TryGetData(WiresVisuals.MaintenancePanelState, out var state)) {