Fix rare crash when deleting airlock while the deny animation is playing
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user