Fix rare crash when deleting airlock while the deny animation is playing

This commit is contained in:
Víctor Aguilera Puerto
2020-08-22 13:41:35 +02:00
parent bb923aa230
commit 8e54ea42e6

View File

@@ -10,6 +10,9 @@ namespace Content.Client.GameObjects.Components.Wires
{
base.OnChangeData(component);
if (component.Owner.Deleted)
return;
var sprite = component.Owner.GetComponent<ISpriteComponent>();
if (component.TryGetData<bool>(WiresVisuals.MaintenancePanelState, out var state))
{