diff --git a/Content.Server/Atmos/Miasma/MiasmaSystem.cs b/Content.Server/Atmos/Miasma/MiasmaSystem.cs index 5d66045167..d14602a248 100644 --- a/Content.Server/Atmos/Miasma/MiasmaSystem.cs +++ b/Content.Server/Atmos/Miasma/MiasmaSystem.cs @@ -238,7 +238,7 @@ namespace Content.Server.Atmos.Miasma private void OnFliesShutdown(EntityUid uid, FliesComponent component, ComponentShutdown args) { - if (!Terminating(uid)) + if (!Terminating(uid) && !Deleted(uid)) Del(component.VirtFlies); }